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)); }