From 1de436ed57cf4644bf5f0836dfbacdc052f3bb01 Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Wed, 20 Sep 2023 09:03:32 -0600 Subject: [PATCH] Finish the proposed change -- remove struct accessor --- include/fmt/format.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 8ce2ddf1..bf766f26 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3478,7 +3478,7 @@ FMT_CONSTEXPR20 auto format_float(Float value, int precision, float_specs specs, if (precision < 9) { uint32_t fractional_part = static_cast(prod); should_round_up = fractional_part >= - data::fractional_part_rounding_thresholds + fractional_part_rounding_thresholds [8 - number_of_digits_to_print] || ((fractional_part >> 31) & ((digits & 1) | (second_third_subsegments != 0) | @@ -3518,7 +3518,7 @@ FMT_CONSTEXPR20 auto format_float(Float value, int precision, float_specs specs, // consisting of a genuine digit from the input. uint32_t fractional_part = static_cast(prod); should_round_up = fractional_part >= - data::fractional_part_rounding_thresholds + fractional_part_rounding_thresholds [8 - number_of_digits_to_print] || ((fractional_part >> 31) & ((digits & 1) | (third_subsegment != 0) |