From: Loup Vaillant Date: Tue, 19 Sep 2017 06:48:03 +0000 (+0200) Subject: printf() shall use %z for size_t X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=b47810ef28b835e23b57372921ad618949ca5d9c;p=Monocypher.git printf() shall use %z for size_t --- diff --git a/dist/tests/test.c b/dist/tests/test.c index cf7eec6..3ffd675 100644 --- a/dist/tests/test.c +++ b/dist/tests/test.c @@ -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;