diff --git a/test/format-test.cc b/test/format-test.cc index 77a6ded6..ac1a96bb 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -105,7 +105,7 @@ struct uint32_pair { TEST(UtilTest, BitCast) { auto s = fmt::detail::bit_cast(uint64_t{42}); EXPECT_EQ(fmt::detail::bit_cast(s), 42ull); - s = fmt::detail::bit_cast(uint64_t(~0ull)); + s = fmt::detail::bit_cast(~uint64_t{0}); EXPECT_EQ(fmt::detail::bit_cast(s), ~0ull); }