Skip to content

Commit 685f381

Browse files
committed
Resolved warning C4127: conditional expression is constant
1 parent 4e8640e commit 685f381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/fmt/base.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2812,7 +2812,7 @@ template <typename T, typename Char, type TYPE> struct native_formatter {
28122812
FMT_CONSTEXPR auto parse(ParseContext& ctx) -> const Char* {
28132813
if (ctx.begin() == ctx.end() || *ctx.begin() == '}') return ctx.begin();
28142814
auto end = parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx, TYPE);
2815-
if (TYPE == type::char_type) check_char_specs(specs_);
2815+
if (const_check(TYPE == type::char_type)) check_char_specs(specs_);
28162816
return end;
28172817
}
28182818

0 commit comments

Comments
 (0)