mirror of
https://github.com/fmtlib/fmt.git
synced 2025-09-15 15:49:45 -04:00
fix -Wsign-conversion warning
This commit is contained in:
parent
2471875867
commit
8e47cfd1cd
@ -2887,8 +2887,8 @@ class format_string_checker {
|
|||||||
using parse_func = const Char* (*)(parse_context_type&);
|
using parse_func = const Char* (*)(parse_context_type&);
|
||||||
|
|
||||||
parse_context_type context_;
|
parse_context_type context_;
|
||||||
parse_func parse_funcs_[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 ? num_args : 1];
|
type types_[num_args > 0 ? static_cast<size_t>(num_args) : 1];
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FMT_CONSTEXPR format_string_checker(
|
explicit FMT_CONSTEXPR format_string_checker(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user