From 685f381ba7cf814a00f03fa2c7caac3bfc9c5560 Mon Sep 17 00:00:00 2001 From: Matthias Moulin Date: Sun, 7 Apr 2024 19:42:35 +0200 Subject: [PATCH] Resolved warning C4127: conditional expression is constant --- include/fmt/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index 90af295ce812..f46d7e470e6d 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2812,7 +2812,7 @@ template struct native_formatter { FMT_CONSTEXPR auto parse(ParseContext& ctx) -> const Char* { if (ctx.begin() == ctx.end() || *ctx.begin() == '}') return ctx.begin(); auto end = parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx, TYPE); - if (TYPE == type::char_type) check_char_specs(specs_); + if (const_check(TYPE == type::char_type)) check_char_specs(specs_); return end; }