git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
fc09efb
)
Fix integer overflow bug
author
CryptoManiac
<balthazar@yandex.ru>
Thu, 1 Oct 2015 22:41:29 +0000 (15:41 -0700)
committer
CryptoManiac
<balthazar@yandex.ru>
Thu, 1 Oct 2015 22:41:29 +0000 (15:41 -0700)
src/main.cpp
patch
|
blob
|
history
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;