Try to suppress MVSC warn of narrowing (#2230)
This commit is contained in:
parent
a1c6bfd77b
commit
24c9751558
@ -771,7 +771,8 @@ TEST(FormatterTest, SpaceSign) {
|
|||||||
|
|
||||||
TEST(FormatterTest, SignNotTruncated) {
|
TEST(FormatterTest, SignNotTruncated) {
|
||||||
wchar_t format_str[] = {L'{', L':',
|
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);
|
EXPECT_THROW(format(format_str, 42), format_error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user