From f31f7feb5eb4aa6721b9af8ed64d23f71ed766dd Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 24 Aug 2022 22:07:49 +0200 Subject: [PATCH] Test: Silence compiler warning about signed int literal being too big --- test/unit/testutilformat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/testutilformat.cpp b/test/unit/testutilformat.cpp index 2455fc4..2df689a 100644 --- a/test/unit/testutilformat.cpp +++ b/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"); }