diff --git a/include/fmt/format.h b/include/fmt/format.h index 52daed7d..cae24f14 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -389,7 +389,7 @@ template sizeof(From))> inline auto bit_cast(const From& from) -> To { constexpr auto size = static_cast(sizeof(From) / sizeof(unsigned)); struct data_t { - unsigned value[size]; + unsigned value[static_cast(size)]; } data = bit_cast(from); auto result = To(); if (const_check(is_big_endian())) {