diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h index 0a65560c..65f4aa70 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -2122,7 +2122,7 @@ template <> struct cache_accessor { // Get error int error_idx = (k - float_info::min_k) / 16; - int error = (data::dragonbox_pow10_recovery_errors[error_idx] >> + uint32_t error = (data::dragonbox_pow10_recovery_errors[error_idx] >> ((k - float_info::min_k) % 16) * 2) & 0x3;