diff --git a/include/fmt/core.h b/include/fmt/core.h index 4389ee16..b9091fa6 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1138,10 +1138,9 @@ template class basic_format_args { bool is_packed() const { return (types_ & internal::is_unpacked_bit) == 0; } - typename internal::type type(unsigned index) const { + internal::type type(unsigned index) const { unsigned shift = index * 4; - return static_cast((types_ & (0xfull << shift)) >> - shift); + return static_cast((types_ & (0xfull << shift)) >> shift); } friend class internal::arg_map;