Resolved warning C4127: conditional expression is constant (#3923)

This commit is contained in:
Matthias Moulin 2024-04-07 20:01:26 +02:00 committed by GitHub
parent 4e8640ed90
commit 550437b29e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2812,7 +2812,7 @@ template <typename T, typename Char, type TYPE> 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;
}