mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-29 08:14:18 +00:00
Fix a signed/unsigned warning introduced in 1b4568c
vout counter must be unsigned.
This commit is contained in:
parent
eaa9400781
commit
5bb765507b
@ -815,7 +815,7 @@ void CWalletTx::GetAmounts(list<COutputEntry>& listReceived,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Sent/received.
|
// Sent/received.
|
||||||
for (int i = 0; i < vout.size(); ++i)
|
for (unsigned int i = 0; i < vout.size(); ++i)
|
||||||
{
|
{
|
||||||
const CTxOut& txout = vout[i];
|
const CTxOut& txout = vout[i];
|
||||||
isminetype fIsMine = pwallet->IsMine(txout);
|
isminetype fIsMine = pwallet->IsMine(txout);
|
||||||
@ -840,7 +840,7 @@ void CWalletTx::GetAmounts(list<COutputEntry>& listReceived,
|
|||||||
address = CNoDestination();
|
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 we are debited by the transaction, add the output as a "sent" entry
|
||||||
if (nDebit > 0)
|
if (nDebit > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user