Skip to content

Commit 5bb7655

Browse files
committed
Fix a signed/unsigned warning introduced in 1b4568c
vout counter must be unsigned.
1 parent eaa9400 commit 5bb7655

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ void CWalletTx::GetAmounts(list<COutputEntry>& listReceived,
815815
}
816816

817817
// Sent/received.
818-
for (int i = 0; i < vout.size(); ++i)
818+
for (unsigned int i = 0; i < vout.size(); ++i)
819819
{
820820
const CTxOut& txout = vout[i];
821821
isminetype fIsMine = pwallet->IsMine(txout);
@@ -840,7 +840,7 @@ void CWalletTx::GetAmounts(list<COutputEntry>& listReceived,
840840
address = CNoDestination();
841841
}
842842

843-
COutputEntry output = {address, txout.nValue, i};
843+
COutputEntry output = {address, txout.nValue, (int)i};
844844

845845
// If we are debited by the transaction, add the output as a "sent" entry
846846
if (nDebit > 0)

0 commit comments

Comments
 (0)