Fix two warnings for comparison between signed and unsigned

This commit is contained in:
Pieter Wuille
2016-06-08 15:34:18 +02:00
parent 6a034ed898
commit 77f63a4fcd
2 changed files with 2 additions and 2 deletions

View File

@@ -2232,7 +2232,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;