Use same type when calling max

This commit is contained in:
Eirik Ogilvie-Wigley 2019-10-22 11:29:55 -06:00
parent fffd5da201
commit 8307a5db5a
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ WeightedTxInfo WeightedTxInfo::from(const CTransaction& tx, const CAmount& fee)
memUsage += tx.vJoinSplit.size() * JOINSPLIT_SIZE;
memUsage += tx.vShieldedOutput.size() * OUTPUTDESCRIPTION_SIZE;
memUsage += tx.vShieldedSpend.size() * SPENDDESCRIPTION_SIZE;
int64_t cost = std::max(memUsage, MIN_TX_COST);
int64_t cost = std::max((int64_t) memUsage, (int64_t) MIN_TX_COST);
int64_t evictionWeight = cost;
if (fee < DEFAULT_FEE) {
evictionWeight += LOW_FEE_PENALTY;