From f9bac93deb61365fc5c6280dcd1f87c231a1f5ba Mon Sep 17 00:00:00 2001 From: IRainman Date: Tue, 30 Dec 2025 01:04:02 +0300 Subject: [PATCH] type usage fix. --- include/fast_float/decimal_to_binary.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/fast_float/decimal_to_binary.h b/include/fast_float/decimal_to_binary.h index b1f8842..661f8dd 100644 --- a/include/fast_float/decimal_to_binary.h +++ b/include/fast_float/decimal_to_binary.h @@ -141,8 +141,9 @@ compute_float(am_pow_t q, am_mant_t w) noexcept { // branchless approach: value128 product = compute_product(q, w); but in // practice, we can win big with the compute_product_approximation if its // additional branch is easily predicted. Which is best is data specific. - am_bits_t const upperbit = static_cast(product.high >> 63); - am_bits_t const shift = upperbit + 64 - binary::mantissa_explicit_bits() - 3; + auto const upperbit = static_cast(product.high >> 63); + auto const shift = static_cast( + upperbit + 64 - binary::mantissa_explicit_bits() - 3); // Shift right the mantissa to the correct position answer.mantissa = product.high >> shift;