Skip to content

Commit

Permalink
Try to suppress MVSC warn of narrowing (#2230)
Browse files Browse the repository at this point in the history
  • Loading branch information
denchat authored Apr 13, 2021
1 parent a1c6bfd commit 24c9751
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/format-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,8 @@ TEST(FormatterTest, SpaceSign) {

TEST(FormatterTest, SignNotTruncated) {
wchar_t format_str[] = {L'{', L':',
'+' | (1 << fmt::detail::num_bits<char>()), L'}', 0};
'+' | static_cast<wchar_t>(1 << fmt::detail::num_bits<char>()),
L'}', 0};
EXPECT_THROW(format(format_str, 42), format_error);
}

Expand Down

0 comments on commit 24c9751

Please sign in to comment.