diff --git a/include/fmt/base.h b/include/fmt/base.h index c6fc1d099958..7eb986171043 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2323,7 +2323,7 @@ constexpr auto encode_types() -> unsigned long long { template constexpr auto make_descriptor() -> unsigned long long { return NUM_ARGS <= max_packed_args ? encode_types() - : is_unpacked_bit | NUM_ARGS; + : static_cast(is_unpacked_bit) | NUM_ARGS; } template