Use correct format for printf

Change the printf format from '%d' to '%u', matching the type of the
arguments.
This commit is contained in:
Esther Wang 2023-12-05 16:43:28 +08:00 committed by Milo Yip
parent f9d53419e9
commit 6089180ecb
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}