From 91c024ed3322793cf0fddd81fc1a83c22eb61709 Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Thu, 24 Nov 2022 21:11:55 +0500 Subject: [PATCH] Rename leading_v -> leading_xdigit Signed-off-by: Vladislav Shchapov --- 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 01e0a509..414d11a3 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3147,9 +3147,9 @@ FMT_CONSTEXPR20 void format_hexfloat(Float value, int precision, constexpr auto leading_shift = ((num_xdigits - 1) * 4); const auto leading_mask = carrier_uint(0xF) << leading_shift; - const auto leading_v = + const auto leading_xdigit = static_cast((f.f & leading_mask) >> leading_shift); - if (leading_v > 1) f.e -= (32 - FMT_BUILTIN_CLZ(leading_v) - 1); + if (leading_xdigit > 1) f.e -= (32 - FMT_BUILTIN_CLZ(leading_xdigit) - 1); int print_xdigits = num_xdigits - 1; if (precision >= 0 && print_xdigits > precision) {