diff --git a/src/wallet.cpp b/src/wallet.cpp index 89a260480..efefb71b6 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -815,7 +815,7 @@ void CWalletTx::GetAmounts(list& listReceived, } // Sent/received. - for (int i = 0; i < vout.size(); ++i) + for (unsigned int i = 0; i < vout.size(); ++i) { const CTxOut& txout = vout[i]; isminetype fIsMine = pwallet->IsMine(txout); @@ -840,7 +840,7 @@ void CWalletTx::GetAmounts(list& listReceived, address = CNoDestination(); } - COutputEntry output = {address, txout.nValue, i}; + COutputEntry output = {address, txout.nValue, (int)i}; // If we are debited by the transaction, add the output as a "sent" entry if (nDebit > 0)