tests/test_printf.c

changeset 956
abd60ccd74f7
parent 951
8f6d6556380a
--- 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));

mercurial