aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.h
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2012-04-15 16:52:09 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-04-15 16:52:09 -0400
commitc376ac359ec8551823b4ee14c85d85a49f2d3436 (patch)
tree121093f97279ca969a424f3792e64c41f8a05b48 /src/wallet.h
parentab9dc75a183c7a46e38e957ee3192d5febcccb3c (diff)
downloadbitcoin-c376ac359ec8551823b4ee14c85d85a49f2d3436.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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet.h b/src/wallet.h
index 869e888fcd..b1ee40ab90 100644
--- a/src/wallet.h
+++ b/src/wallet.h
@@ -402,7 +402,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;
@@ -488,7 +488,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))
{
@@ -541,7 +541,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];