From 5bb765507b394e1fe205355b0b9937d95f8a39e6 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Fri, 18 Jul 2014 13:24:38 +0200 Subject: [PATCH] Fix a signed/unsigned warning introduced in 1b4568c vout counter must be unsigned. --- src/wallet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet.cpp b/src/wallet.cpp index 89a260480e2..efefb71b6da 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)