From 8e47cfd1cdfa9cb29cbb5ae037124cd71425a1fe Mon Sep 17 00:00:00 2001 From: Juraj <37395233+JurajX@users.noreply.github.com> Date: Sat, 11 Jun 2022 16:05:53 +0200 Subject: [PATCH] fix -Wsign-conversion warning --- include/fmt/core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(