From 72e75ed98f133fae7aff734db2ff53606dd5ce0e Mon Sep 17 00:00:00 2001 From: IRainman Date: Tue, 21 Oct 2025 16:16:18 +0300 Subject: [PATCH] # compilation fix after merge. --- include/fast_float/digit_comparison.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/fast_float/digit_comparison.h b/include/fast_float/digit_comparison.h index a0d5882..0380df7 100644 --- a/include/fast_float/digit_comparison.h +++ b/include/fast_float/digit_comparison.h @@ -38,7 +38,6 @@ constexpr static uint64_t powers_of_ten_uint64[] = {1UL, // this algorithm is not even close to optimized, but it has no practical // effect on performance: in order to have a faster algorithm, we'd need // to slow down performance for faster algorithms, and this is still fast. -template fastfloat_really_inline FASTFLOAT_CONSTEXPR14 am_pow_t scientific_exponent(am_mant_t mantissa, am_pow_t exponent) noexcept { while (mantissa >= 10000) { @@ -450,7 +449,7 @@ inline FASTFLOAT_CONSTEXPR20 adjusted_mantissa digit_comp( // remove the invalid exponent bias am.power2 -= invalid_am_bias; - am_pow_t const sci_exp = scientific_exponent(num); + am_pow_t const sci_exp = scientific_exponent(num.mantissa, num.exponent); bigint bigmant; am_digits const digits = parse_mantissa(bigmant, num); // can't underflow, since digits is at most max_digits.