mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-29 18:27:40 +02:00
Try to suppress MVSC warn of narrowing (#2230)
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user