# HG changeset patch # User Mike Becker # Date 1730224069 -3600 # Node ID abd60ccd74f7b7f1abe866fe07022f08fdd50858 # Parent 18741059da473f3093ebf25e874085aa71417011 fix comparing size_t with int diff -r 18741059da47 -r abd60ccd74f7 tests/test_printf.c --- a/tests/test_printf.c Tue Oct 29 18:46:50 2024 +0100 +++ b/tests/test_printf.c Tue Oct 29 18:47:49 2024 +0100 @@ -181,7 +181,7 @@ cxmutstr r[13]; size_t specimen_count = cx_nmemb(r); - int specimen = 0; + size_t specimen = 0; CX_TEST_DO { r[specimen] = cx_asprintf_a(alloc, "teststring"); @@ -264,7 +264,7 @@ CX_TEST_ASSERT(specimen == specimen_count); // self-test - for (int i = 0; i < specimen_count; i++) { + for (size_t i = 0; i < specimen_count; i++) { cx_strfree_a(alloc, &r[i]); } CX_TEST_ASSERT(cx_testing_allocator_verify(&talloc));