From 24c97515586e1ade87e2ba800c800abd8f72b052 Mon Sep 17 00:00:00 2001 From: denchat <19730041+denchat@users.noreply.github.com> Date: Tue, 13 Apr 2021 21:30:43 +0700 Subject: [PATCH] Try to suppress MVSC warn of narrowing (#2230) --- test/format-test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }