From: CryptoManiac Date: Thu, 1 Oct 2015 22:41:29 +0000 (-0700) Subject: Fix integer overflow bug X-Git-Tag: nvc-v0.5.5~70 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=36d2ec199438bb189921d8adf12ad77fee1d969e Fix integer overflow bug --- diff --git a/src/main.cpp b/src/main.cpp index 30222b5..aaa8c52 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1640,7 +1640,7 @@ bool CTransaction::ClientConnectInputs() bool CBlock::DisconnectBlock(CTxDB& txdb, CBlockIndex* pindex) { // Disconnect in reverse order - for (size_t i = vtx.size()-1; i >= 0; i--) + for (int i = vtx.size()-1; i >= 0; i--) if (!vtx[i].DisconnectInputs(txdb)) return false;