]> git.codecow.com Git - Monocypher.git/commitdiff
printf() shall use %z for size_t
authorLoup Vaillant <loup@loup-vaillant.fr>
Tue, 19 Sep 2017 06:48:03 +0000 (08:48 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Tue, 19 Sep 2017 06:48:03 +0000 (08:48 +0200)
dist/tests/test.c

index cf7eec669fabef21b4c275b292dab6dedf7119af..3ffd675fc7c1be1dc50d424282783bf7e2f2c216 100644 (file)
@@ -22,7 +22,7 @@ static void* alloc(size_t size)
 {
     void *buf = malloc(size);
     if (buf == NULL) {
-        fprintf(stderr, "Allocation failed: 0x%lx bytes\n", size);
+        fprintf(stderr, "Allocation failed: 0x%zx bytes\n", size);
         exit(1);
     }
     return buf;