Skip to content

Commit

Permalink
Replace several uint_least32_t by uint_fast32_t
Browse files Browse the repository at this point in the history
  • Loading branch information
jk-jeon committed May 7, 2024
1 parent e25ee77 commit f87b64d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/dragonbox/dragonbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)) |
Expand Down

0 comments on commit f87b64d

Please sign in to comment.