diff --git a/include/fmt/core.h b/include/fmt/core.h index 43335a47..55ae22db 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2887,8 +2887,8 @@ class format_string_checker { using parse_func = const Char* (*)(parse_context_type&); parse_context_type context_; - parse_func parse_funcs_[num_args > 0 ? num_args : 1]; - type types_[num_args > 0 ? num_args : 1]; + parse_func parse_funcs_[num_args > 0 ? static_cast(num_args) : 1]; + type types_[num_args > 0 ? static_cast(num_args) : 1]; public: explicit FMT_CONSTEXPR format_string_checker(