From 2d9b1dd0adedd2393186c18f0e2e244f0c2a2c06 Mon Sep 17 00:00:00 2001 From: Junekey Jeon Date: Fri, 18 Sep 2020 13:06:08 -0700 Subject: [PATCH] Fix sign mismatch --- include/fmt/format-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;