Browse Source

Test: Silence compiler warning about signed int literal being too big

master
Riyyi 2 years ago
parent
commit
f31f7feb5e
  1. 2
      test/unit/testutilformat.cpp

2
test/unit/testutilformat.cpp

@ -55,7 +55,7 @@ TEST_CASE(FormatIntegral)
result = format("{}", u32);
EXPECT_EQ(result, "4294967295");
size_t u64 = 18446744073709551615; // long unsigned int
size_t u64 = 18446744073709551615u; // long unsigned int
result = format("{}", u64);
EXPECT_EQ(result, "18446744073709551615");
}

Loading…
Cancel
Save