Skip to content

Commit

Permalink
Resolved warning C4127: conditional expression is constant (#3923)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt77hias authored Apr 7, 2024
1 parent 4e8640e commit 550437b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 550437b

Please sign in to comment.