Fix sign mismatch

This commit is contained in:
Junekey Jeon 2020-09-18 13:06:08 -07:00 committed by Victor Zverovich
parent 1f0600a23b
commit 2d9b1dd0ad

View File

@ -2122,7 +2122,7 @@ template <> struct cache_accessor<double> {
// Get error // Get error
int error_idx = (k - float_info<double>::min_k) / 16; int error_idx = (k - float_info<double>::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<double>::min_k) % 16) * 2) & ((k - float_info<double>::min_k) % 16) * 2) &
0x3; 0x3;