aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.h
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2012-04-17 10:55:56 -0700
committerGavin Andresen <gavinandresen@gmail.com>2012-04-17 10:55:56 -0700
commitb97d54355e8239273b50c54dbedfde16ed82fd73 (patch)
tree7c605817ec5a41b86b5656916eaa014e13fb247f /src/wallet.h
parente873dc654c81810272e71af8b52a3836d2c8bf0a (diff)
parent9fb89c26f3a3991d197b207f44ef79b1d16c26fc (diff)
downloadbitcoin-b97d54355e8239273b50c54dbedfde16ed82fd73.tar.xz
Merge pull request #1106 from jgarzik/sign-compare
Fix many sign-comparison warnings found in bitcoin codebase
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];