diff --git a/include/fmt/core.h b/include/fmt/core.h index 8acc2f60..f43c579d 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1064,8 +1064,9 @@ class basic_format_args { unsigned max_size() const { int64_t signed_types = static_cast(types_); - return signed_types < 0 ? - -signed_types : static_cast(internal::max_packed_args); + return static_cast(signed_types < 0 + ? -signed_types + : static_cast(internal::max_packed_args)); } };