diff --git a/test/format-test.cc b/test/format-test.cc index 13994d31..5af2e244 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -771,7 +771,8 @@ TEST(FormatterTest, SpaceSign) { TEST(FormatterTest, SignNotTruncated) { wchar_t format_str[] = {L'{', L':', - '+' | (1 << fmt::detail::num_bits()), L'}', 0}; + '+' | static_cast(1 << fmt::detail::num_bits()), + L'}', 0}; EXPECT_THROW(format(format_str, 42), format_error); }