Skip to content

Commit a426098

Browse files
Fix compiler warnings emitted when compiling under stock OpenBSD 6.3
1 parent 6738813 commit a426098

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/txmempool.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -693,18 +693,18 @@ void CTxMemPool::check(const CCoinsViewCache *pcoins) const
693693
// Check children against mapNextTx
694694
CTxMemPool::setEntries setChildrenCheck;
695695
auto iter = mapNextTx.lower_bound(COutPoint(it->GetTx().GetHash(), 0));
696-
int64_t childSizes = 0;
696+
uint64_t child_sizes = 0;
697697
for (; iter != mapNextTx.end() && iter->first->hash == it->GetTx().GetHash(); ++iter) {
698698
txiter childit = mapTx.find(iter->second->GetHash());
699699
assert(childit != mapTx.end()); // mapNextTx points to in-mempool transactions
700700
if (setChildrenCheck.insert(childit).second) {
701-
childSizes += childit->GetTxSize();
701+
child_sizes += childit->GetTxSize();
702702
}
703703
}
704704
assert(setChildrenCheck == GetMemPoolChildren(it));
705705
// Also check to make sure size is greater than sum with immediate children.
706706
// just a sanity check, not definitive that this calc is correct...
707-
assert(it->GetSizeWithDescendants() >= childSizes + it->GetTxSize());
707+
assert(it->GetSizeWithDescendants() >= child_sizes + it->GetTxSize());
708708

709709
if (fDependsWait)
710710
waitingOnDependants.push_back(&(*it));

0 commit comments

Comments
 (0)