From a2c8ff5ccbda860d56d9f37fe71b99cf58c939c7 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 17 Oct 2015 21:32:25 +0200 Subject: [PATCH] Visual Studio doesn't have %zu --- test/default/sodium_utils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/default/sodium_utils.c b/test/default/sodium_utils.c index 247e4fde..b781f2c0 100644 --- a/test/default/sodium_utils.c +++ b/test/default/sodium_utils.c @@ -90,11 +90,13 @@ int main(void) randombytes_buf(buf2, bin_len); if (memcmp(buf1, buf2, bin_len) * sodium_compare(buf1, buf2, bin_len) < 0) { - printf("sodium_compare() failure with length=%zu\n", bin_len); + printf("sodium_compare() failure with length=%u\n", + (unsigned int) bin_len); } memcpy(buf1, buf2, bin_len); if (sodium_compare(buf1, buf2, bin_len)) { - printf("sodium_compare() equality failure with length=%zu\n", bin_len); + printf("sodium_compare() equality failure with length=%u\n", + (unsigned int) bin_len); } } return 0;