aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-07-18 13:24:38 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-07-18 13:24:38 +0200
commit5bb765507b394e1fe205355b0b9937d95f8a39e6 (patch)
treea44ab15caa48840b28f1c5cceb60cca9c668574e /src/wallet.cpp
parenteaa9400781484e69a2b5f3076567c57830324773 (diff)
downloadbitcoin-5bb765507b394e1fe205355b0b9937d95f8a39e6.tar.xz
Fix a signed/unsigned warning introduced in 1b4568c
vout counter must be unsigned.
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r--src/wallet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 89a260480e..efefb71b6d 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -815,7 +815,7 @@ void CWalletTx::GetAmounts(list<COutputEntry>& 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<COutputEntry>& 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)