From 71e0355de891fb5c8f02ec1fa6a273d004ac959b Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Thu, 29 Oct 2020 16:54:35 -0400 Subject: [PATCH] fixing a comment. --- include/fast_float/decimal_to_binary.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fast_float/decimal_to_binary.h b/include/fast_float/decimal_to_binary.h index 062a039..161cea4 100644 --- a/include/fast_float/decimal_to_binary.h +++ b/include/fast_float/decimal_to_binary.h @@ -115,7 +115,7 @@ adjusted_mantissa compute_float(int64_t q, uint64_t w) noexcept { // result should be zero return answer; } - // next line is safe because -answer.power2 + 1 < 0 + // next line is safe because -answer.power2 + 1 < 64 answer.mantissa >>= -answer.power2 + 1; // Thankfully, we can't have both "round-to-even" and subnormals because // "round-to-even" only occurs for powers close to 0.