Fix build error

- Use an explicit cast to std::int64_t in std::max call, because
  suffixes are inconsistent.
This commit is contained in:
Ed Hennis
2025-10-26 21:52:01 -04:00
parent fe5bd82ed8
commit f4404eafbd

View File

@@ -119,7 +119,7 @@ LoanPay::calculateBaseFee(ReadView const& view, STTx const& tx)
// Charge one base fee per paymentsPerFeeIncrement payments, rounding up.
Number::setround(Number::upward);
auto const feeIncrements = std::max(
1ll,
std::int64_t(1),
static_cast<std::int64_t>(
numPaymentEstimate / loanPaymentsPerFeeIncrement));