From b1858a9b9b9f83215a7f044aaae0d683ddf2e537 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 25 Nov 2024 16:56:53 +0100 Subject: [PATCH] scripts: Use correct type for length when printing `count` for KEM KATs --- scripts/nist_kem_kat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/nist_kem_kat.c b/scripts/nist_kem_kat.c index e80436132..31370e8ae 100644 --- a/scripts/nist_kem_kat.c +++ b/scripts/nist_kem_kat.c @@ -140,7 +140,7 @@ int main(int argc, char *argv[]) { break; } - fprintf(out, "/** count = %.*s */\n", value_len, value); + fprintf(out, "/** count = %.*s */\n", (int)value_len, value); fprintf(out, "{\n"); fprintf(out, "\t.method = %s,\n", method); count--;