fix -Wsign-conversion warning

This commit is contained in:
Juraj 2022-06-11 16:05:53 +02:00 committed by Victor Zverovich
parent 2471875867
commit 8e47cfd1cd

View File

@ -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<size_t>(num_args) : 1];
type types_[num_args > 0 ? static_cast<size_t>(num_args) : 1];
public:
explicit FMT_CONSTEXPR format_string_checker(