From e4ac8bba1daee6f3953f5bb312d595d7bd613c3d Mon Sep 17 00:00:00 2001 From: Mast3rMind Date: Wed, 10 Jan 2018 09:12:19 -0500 Subject: [PATCH] [Wallet] Fix build warnings for wallet.cpp --- src/wallet/wallet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index eadd825b5841..3f35cb137b8c 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -956,7 +956,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn, bool fFromLoadWallet, CWalletD wtxIn.hashBlock.ToString()); } AddToSpends(hash); - for(int i = 0; i < wtx.vout.size(); ++i) { + for(unsigned int i = 0; i < wtx.vout.size(); ++i) { if (IsMine(wtx.vout[i]) && !IsSpent(hash, i)) { setWalletUTXO.insert(COutPoint(hash, i)); } @@ -3615,7 +3615,7 @@ DBErrors CWallet::LoadWallet(bool& fFirstRunRet) { LOCK2(cs_main, cs_wallet); for (auto& pair : mapWallet) { - for(int i = 0; i < pair.second.vout.size(); ++i) { + for(unsigned int i = 0; i < pair.second.vout.size(); ++i) { if (IsMine(pair.second.vout[i]) && !IsSpent(pair.first, i)) { setWalletUTXO.insert(COutPoint(pair.first, i)); }