From d6144a1adff3710906f47df6f2f0e186dba51ef5 Mon Sep 17 00:00:00 2001 From: Muhammad Ammar Date: Tue, 4 Jul 2023 16:51:56 +0500 Subject: [PATCH] Made 'shift' constexpr, of constexpr variables. Credits to, Code Analyzer of Visual Studio 2022. --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 387d6467..8ceed822 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2821,7 +2821,7 @@ class bigint { FMT_CONSTEXPR20 void multiply(UInt value) { using half_uint = conditional_t::value, uint64_t, uint32_t>; - const int shift = num_bits() - bigit_bits; + constexpr int shift = num_bits() - bigit_bits; const UInt lower = static_cast(value); const UInt upper = value >> num_bits(); UInt carry = 0;