From 293ca61c76d90f92119e0d45b796b0c1564efc7a Mon Sep 17 00:00:00 2001 From: huangqinjin Date: Fri, 23 Dec 2022 19:20:28 +0800 Subject: [PATCH] Fix compile warning of unit64_t to bool --- include/fast_float/digit_comparison.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fast_float/digit_comparison.h b/include/fast_float/digit_comparison.h index 77c710f..4c43433 100644 --- a/include/fast_float/digit_comparison.h +++ b/include/fast_float/digit_comparison.h @@ -125,8 +125,8 @@ void round_nearest_tie_even(adjusted_mantissa& am, int32_t shift, callback cb) n halfway = uint64_t(1) << (shift - 1); } uint64_t truncated_bits = am.mantissa & mask; - uint64_t is_above = truncated_bits > halfway; - uint64_t is_halfway = truncated_bits == halfway; + bool is_above = truncated_bits > halfway; + bool is_halfway = truncated_bits == halfway; // shift digits into position if (shift == 64) {