From 6089180ecb704cb2b136777798fa1be303618975 Mon Sep 17 00:00:00 2001 From: Esther Wang Date: Tue, 5 Dec 2023 16:43:28 +0800 Subject: [PATCH] Use correct format for printf Change the printf format from '%d' to '%u', matching the type of the arguments. --- test/unittest/schematest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unittest/schematest.cpp b/test/unittest/schematest.cpp index dbc467e..9d95cd4 100644 --- a/test/unittest/schematest.cpp +++ b/test/unittest/schematest.cpp @@ -2285,7 +2285,7 @@ TEST(SchemaValidator, TestSuite) { MemoryPoolAllocator<>::Free(json); jsonAllocator.Clear(); } - printf("%d / %d passed (%2d%%)\n", passCount, testCount, passCount * 100 / testCount); + printf("%u / %u passed (%2u%%)\n", passCount, testCount, passCount * 100 / testCount); if (passCount != testCount) ADD_FAILURE(); }