From c7629365896280ff7a346922530789f47403f61d Mon Sep 17 00:00:00 2001 From: IRainman Date: Wed, 9 Apr 2025 15:55:54 +0300 Subject: [PATCH] template interface cleanup for min_safe_u64 and max_digits_u64. --- include/fast_float/float_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fast_float/float_common.h b/include/fast_float/float_common.h index 667f819..53fc4b4 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -1174,13 +1174,13 @@ fastfloat_really_inline constexpr uint8_t ch_to_digit(UC c) { return int_luts<>::chdigit[static_cast(c)]; } -fastfloat_really_inline constexpr uint8_t max_digits_u64(uint32_t base) { +fastfloat_really_inline constexpr uint8_t max_digits_u64(uint8_t base) { return int_luts<>::maxdigits_u64[base - 2]; } // If a u64 is exactly max_digits_u64() in length, this is // the value below which it has definitely overflowed. -fastfloat_really_inline constexpr uint64_t min_safe_u64(uint32_t base) { +fastfloat_really_inline constexpr uint64_t min_safe_u64(uint8_t base) { return int_luts<>::min_safe_u64[base - 2]; }