From 0a94f88f96770b261b184c565c6959da51d8b65b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist-=C3=85strand?= Date: Sat, 19 Jan 2002 09:21:12 +0000 Subject: [PATCH] des-fix-make-p-table-on-alpha-20020119 if printing with a long (l) unsigned (X), make sure to pass such a value as an argument (p_prime is of int type on alpha). --- src/des/make_p_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/des/make_p_table.c b/src/des/make_p_table.c index a61f9e7eb4..8b8c76668f 100644 --- a/src/des/make_p_table.c +++ b/src/des/make_p_table.c @@ -58,7 +58,7 @@ void gen(stream) for (j = 0; j < 64; j++) { fprintf(stream,"\n"); for (k = 0; k < 4; k++) { - fprintf(stream,"0x%08lX",P_prime[i][j*4+k]); + fprintf(stream,"0x%08lX",(unsigned long)P_prime[i][j*4+k]); if ((j == 63) && (k == 3)) fprintf(stream, "}"); if ((i == 3) && (j == 63) && (k == 3))