]> andersk Git - libyaml.git/blobdiff - tests/test-version.c
Fix -Wformat compilation errors in tests
[libyaml.git] / tests / test-version.c
index e3e4a1623b3aa43b158902c3bf5c2155fb61d79e..69ae5bb3828a750b1537cf725b18a274a7a6dae3 100644 (file)
@@ -21,9 +21,9 @@ main(void)
     assert(strcmp(buf, yaml_get_version_string()) == 0);
 
     /* Print structure sizes. */
-    printf("sizeof(token) = %d\n", sizeof(yaml_token_t));
-    printf("sizeof(event) = %d\n", sizeof(yaml_event_t));
-    printf("sizeof(parser) = %d\n", sizeof(yaml_parser_t));
+    printf("sizeof(token) = %lu\n", sizeof(yaml_token_t));
+    printf("sizeof(event) = %lu\n", sizeof(yaml_event_t));
+    printf("sizeof(parser) = %lu\n", sizeof(yaml_parser_t));
 
     return 0;
 }
This page took 0.028676 seconds and 4 git commands to generate.