From f87b64d7f32e4bbde6281ebd07ee14d928b44a90 Mon Sep 17 00:00:00 2001 From: Junekey Jeon Date: Tue, 7 May 2024 00:24:47 -0700 Subject: [PATCH] Replace several uint_least32_t by uint_fast32_t --- include/dragonbox/dragonbox.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dragonbox/dragonbox.h b/include/dragonbox/dragonbox.h index d1913f6..e039c6a 100644 --- a/include/dragonbox/dragonbox.h +++ b/include/dragonbox/dragonbox.h @@ -2122,9 +2122,9 @@ namespace jkj { // Try to recover the real cache. auto const pow5 = offset >= 7 - ? detail::stdr::uint_least32_t(detail::stdr::uint_least32_t(pow5_table[6]) * + ? detail::stdr::uint_fast32_t(detail::stdr::uint_fast32_t(pow5_table[6]) * pow5_table[offset - 6]) - : detail::stdr::uint_least32_t(pow5_table[offset]); + : detail::stdr::uint_fast32_t(pow5_table[offset]); auto mul_result = detail::wuint::umul128(base_cache, pow5); auto const recovered_cache = cache_entry_type((((mul_result.high() << ShiftAmountType(64 - alpha)) |