tests/test_printf.c

changeset 951
8f6d6556380a
parent 890
54565fd74e74
child 956
abd60ccd74f7
--- a/tests/test_printf.c	Tue Oct 29 16:47:19 2024 +0100
+++ b/tests/test_printf.c	Tue Oct 29 16:47:40 2024 +0100
@@ -179,8 +179,8 @@
 
     const char *h = "Hello";
 
-    int const specimen_count = 13;
-    cxmutstr r[specimen_count];
+    cxmutstr r[13];
+    size_t specimen_count = cx_nmemb(r);
     int specimen = 0;
 
     CX_TEST_DO {

mercurial