From 0dd0a4a528e72e869b829a04e32cf7b905d43a68 Mon Sep 17 00:00:00 2001 From: "Matthias J. Kannwischer" Date: Thu, 16 May 2019 11:30:24 +0200 Subject: [PATCH] fix format strings for Windows --- test/crypto_sign/nistkat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/crypto_sign/nistkat.c b/test/crypto_sign/nistkat.c index adef86cc..267b072f 100644 --- a/test/crypto_sign/nistkat.c +++ b/test/crypto_sign/nistkat.c @@ -80,7 +80,7 @@ int main() { fprintf(stderr, "[kat_kem] %s ERROR: crypto_sign failed!\n", CRYPTO_ALGNAME); return -2; } - fprintf(fh, "smlen = %lu\n", smlen); + fprintf(fh, "smlen = %zu\n", smlen); fprintBstr(fh, "sm = ", sm, smlen); rc = crypto_sign_open(sm, &mlen1, sm, smlen, public_key); @@ -90,7 +90,7 @@ int main() { } if ( mlen != mlen1 ) { - printf("crypto_sign_open returned bad 'mlen': got <%lu>, expected <%lu>\n", mlen1, mlen); + printf("crypto_sign_open returned bad 'mlen': got <%zu>, expected <%zu>\n", mlen1, mlen); return -4; } if (memcmp(m, sm, mlen)) {