wallet2_api: use uint64_t for amounts

This commit is contained in:
moneromooo-monero 2016-07-17 09:33:31 +01:00
parent 18dd507024
commit 87b1153f37
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -118,7 +118,7 @@ uint64_t PendingTransactionImpl::amount() const
uint64_t PendingTransactionImpl::dust() const uint64_t PendingTransactionImpl::dust() const
{ {
uint32_t result = 0; uint64_t result = 0;
for (const auto & ptx : m_pending_tx) { for (const auto & ptx : m_pending_tx) {
result += ptx.dust; result += ptx.dust;
} }
@ -127,7 +127,7 @@ uint64_t PendingTransactionImpl::dust() const
uint64_t PendingTransactionImpl::fee() const uint64_t PendingTransactionImpl::fee() const
{ {
uint32_t result = 0; uint64_t result = 0;
for (const auto ptx : m_pending_tx) { for (const auto ptx : m_pending_tx) {
result += ptx.fee; result += ptx.fee;
} }