From 01059444ee56af0012790c9643090a2182988f25 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 17 Apr 2014 22:15:09 -0700 Subject: [PATCH] Wait, what, printf(3) on Windows doesn't even support %zu? o_O --- test/default/sodium_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/default/sodium_utils.c b/test/default/sodium_utils.c index f309cfe6..e50de241 100644 --- a/test/default/sodium_utils.c +++ b/test/default/sodium_utils.c @@ -28,7 +28,7 @@ int main(void) "0123456789ABCDEF", 16U)); hex = "Cafe : 6942"; sodium_hex2bin(buf4, sizeof buf4, hex, strlen(hex), ": ", &bin_len, NULL); - printf("%zu:%02x%02x%02x%02x\n", bin_len, + printf("%lu:%02x%02x%02x%02x\n", (unsigned long) bin_len, buf4[0], buf4[1], buf4[2], buf4[3]); return 0;