From c9de97ef1ecb707b73a9ccbb7aa750e345ff46e9 Mon Sep 17 00:00:00 2001 From: Olli Lupton Date: Fri, 5 Nov 2021 16:42:35 +0100 Subject: [PATCH] Fix shadowing warning. --- 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 a9d46455..f9d9f683 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -971,11 +971,11 @@ FMT_CONSTEXPR auto count_digits(UInt n) -> int { return (FMT_BUILTIN_CLZ(static_cast(n) | 1) ^ 31) / BITS + 1; #endif // Lambda avoids unreachable code warnings from NVHPC. - return [](UInt n) { + return [](UInt m) { int num_digits = 0; do { ++num_digits; - } while ((n >>= BITS) != 0); + } while ((m >>= BITS) != 0); return num_digits; }(n); }