From 79d8430f22f8308254d886ae21512b0fac54f376 Mon Sep 17 00:00:00 2001 From: user202729 <25191436+user202729@users.noreply.github.com> Date: Sun, 14 Dec 2025 12:34:12 +0700 Subject: [PATCH] Fix lint --- include/fmt/format.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 680740a9..81170881 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1251,7 +1251,8 @@ FMT_CONSTEXPR20 auto do_format_decimal(Char* out, UInt value, int size) if (!is_constant_evaluated() && sizeof(UInt) == 4) { auto p = value * ((1ull << 39) / 100 + 1); write2digits_i(out + n, p >> (39 - 7) & ((1 << 7) - 1)); - value = static_cast(p >> 39) + (static_cast(value >= (100u << 25)) << 25); + value = static_cast(p >> 39) + + (static_cast(value >= (100u << 25)) << 25); } else { // Integer division is slow so do it for a group of two digits instead // of for every digit. The idea comes from the talk by Alexandrescu