Fix comparison between signed and unsigned int

rpcwallet.cpp
wallet.cpp
This commit is contained in:
lateminer
2018-01-10 20:32:50 +03:00
parent 6a8b389cde
commit 85aaa0b023
2 changed files with 2 additions and 2 deletions

View File

@@ -2717,7 +2717,7 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
// Insert change txn at random position:
nChangePosInOut = GetRandInt(txNew.vout.size()+1);
}
else if (nChangePosInOut > txNew.vout.size())
else if ((unsigned int)nChangePosInOut > txNew.vout.size())
{
strFailReason = _("Change index out of range");
return false;