]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-des-fix-make-p-table-on-alpha-20020119
authorLove Hörnquist-Åstrand <lha@e.kth.se>
Sun, 20 Jan 2002 09:03:14 +0000 (09:03 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 20 Jan 2002 09:03:14 +0000 (09:03 +0000)
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).

(cherry picked from commit 0a94f88f96770b261b184c565c6959da51d8b65b)

src/des/make_p_table.c

index a61f9e7eb4088d8518869973f839ef6591047fe3..8b8c76668fb4e1350aa768ee0d9a38a7878a6a2e 100644 (file)
@@ -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))