Wait, what, printf(3) on Windows doesn't even support %zu? o_O

This commit is contained in:
Frank Denis 2014-04-17 22:15:09 -07:00
parent 62d78ec154
commit 01059444ee

View File

@ -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;