diff options
author | Jeff Garzik <jeff@garzik.org> | 2012-04-15 16:52:09 -0400 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-04-17 14:59:32 -0400 |
commit | 0c3aa881e2ac7a6142fcfcbb9b7d2824532fe522 (patch) | |
tree | c3205a1993fa5e2bc5c2b82e692cb36c8bc84d71 /src/wallet.h | |
parent | 3374c3ef094b328e6c6957fdaf5a9abff0c53a33 (diff) | |
download | bitcoin-0c3aa881e2ac7a6142fcfcbb9b7d2824532fe522.tar.xz |
Fix loop index var types, fixing many minor sign comparison warnings
foo.size() typically returns an unsigned integral type; make loop variables
match those types' signedness.
Diffstat (limited to 'src/wallet.h')
-rw-r--r-- | src/wallet.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet.h b/src/wallet.h index 308a266571..5672c6069d 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -400,7 +400,7 @@ public: bool UpdateSpent(const std::vector<char>& vfNewSpent) { bool fReturn = false; - for (int i=0; i < vfNewSpent.size(); i++) + for (unsigned int i = 0; i < vfNewSpent.size(); i++) { if (i == vfSpent.size()) break; @@ -486,7 +486,7 @@ public: return nAvailableCreditCached; int64 nCredit = 0; - for (int i = 0; i < vout.size(); i++) + for (unsigned int i = 0; i < vout.size(); i++) { if (!IsSpent(i)) { @@ -539,7 +539,7 @@ public: std::vector<const CMerkleTx*> vWorkQueue; vWorkQueue.reserve(vtxPrev.size()+1); vWorkQueue.push_back(this); - for (int i = 0; i < vWorkQueue.size(); i++) + for (unsigned int i = 0; i < vWorkQueue.size(); i++) { const CMerkleTx* ptx = vWorkQueue[i]; |