From f04deb41433b2cbf5179b2e84142ef5712963ce4 Mon Sep 17 00:00:00 2001 From: HedgehogInTheCPP Date: Tue, 13 Oct 2026 18:59:22 +0300 Subject: [PATCH] lint unfck --- include/fast_float/float_common.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/fast_float/float_common.h b/include/fast_float/float_common.h index 53e1a79..f3a14f1 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -1122,13 +1122,13 @@ inline constexpr am_digits binary_format::max_digits() { } #endif // __STDCPP_BFLOAT16_T__ -// Whether Clinger's fast path can overflow: only for std::float16_t, where -// 2^11 * 10^4 > 65504. +// Whether Clinger's fast path can overflow: only for std::float16_t or smaller, +// where 2^11 * 10^4 > 65504. template inline constexpr bool binary_format::fast_path_can_overflow() { - return double(max_mantissa_fast_path()) * - double(exact_power_of_ten(max_exponent_fast_path())) > - double((std::numeric_limits::max)()); + return static_cast(max_mantissa_fast_path()) * + static_cast(exact_power_of_ten(max_exponent_fast_path())) > + static_cast(std::numeric_limits::max()); } // A subnormal needs w * 10^q < 2^(minimum_exponent() + 1), so q is at most