git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix integer overflow bug
[novacoin.git]
/
src
/
main.cpp
diff --git
a/src/main.cpp
b/src/main.cpp
index
30222b5
..
aaa8c52
100644
(file)
--- 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;