Skip to content

Commit

Permalink
fix -Wsign-conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajX authored and vitaut committed Jun 11, 2022
1 parent 2471875 commit 8e47cfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8e47cfd

Please sign in to comment.