Browse Source

Fix a signed/unsigned warning introduced in 1b4568c

vout counter must be unsigned.
0.10
Wladimir J. van der Laan 10 years ago
parent
commit
5bb765507b
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 4
      src/wallet.cpp

4
src/wallet.cpp

@ -815,7 +815,7 @@ void CWalletTx::GetAmounts(list<COutputEntry>& listReceived, @@ -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, @@ -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)

Loading…
Cancel
Save