diff --git a/include/fmt/core.h b/include/fmt/core.h index b9f62e5e9ae5..ae4e39cea844 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1151,7 +1151,7 @@ class basic_format_args { \endrst */ basic_format_args(const format_arg *args, size_type count) - : types_(-(int64_t)count) { + : types_(-static_cast(count)) { set_data(args); }