]> git.meshlink.io Git - catta/blobdiff - tests/strlst-test.c
change some printf format specifiers in tests that are unrecognized by MingW
[catta] / tests / strlst-test.c
index 496f80a6f460f7fc32a5c7c80b778ff6fc95dc9a..0c74e8858013b0312e9146f9b96c379fc2cab8e6 100644 (file)
@@ -59,7 +59,7 @@ int main(CATTA_GCC_UNUSED int argc, CATTA_GCC_UNUSED char *argv[]) {
     size = catta_string_list_serialize(a, data, sizeof(data));
     assert(size == n);
 
-    printf("%zu\n", size);
+    printf("%lu\n", (unsigned long)size);
 
     for (t = (char*) data, n = 0; n < size; n++, t++) {
         if (*t <= 32)