From a7d15fd6d00adfe83da5ac9be99a73069f059174 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Tue, 29 Dec 2020 13:22:37 -0500 Subject: [PATCH] Fixes https://github.com/fastfloat/fast_float/issues/47 --- include/fast_float/simple_decimal_conversion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fast_float/simple_decimal_conversion.h b/include/fast_float/simple_decimal_conversion.h index 5c107bc..1d6fda1 100644 --- a/include/fast_float/simple_decimal_conversion.h +++ b/include/fast_float/simple_decimal_conversion.h @@ -305,7 +305,7 @@ adjusted_mantissa compute_float(decimal &d) { decimal_left_shift(d, shift); if (d.decimal_point > decimal_point_range) { // we want to get infinity: - answer.power2 = 0xFF; + answer.power2 = binary::infinite_power(); answer.mantissa = 0; return answer; }