tiger-mktab.c: Don't have printf swallow a kludge64 whole.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 20 May 2011 23:55:19 +0000 (00:55 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 20 May 2011 23:55:19 +0000 (00:55 +0100)
If a 64-bit type was actually found, we tried to feed the containing
kludge64 structure to printf while printing the table, rather than just
the 64-bit number inside.  This was silly.

tiger-mktab.c

index 4ba0ffb..222c523 100644 (file)
@@ -121,7 +121,7 @@ int main(void)
   for (i = 0; i < 4; i++) {
     for (j = 0; j < 256; j++) {
 #ifdef HAVE_UINT64
   for (i = 0; i < 4; i++) {
     for (j = 0; j < 256; j++) {
 #ifdef HAVE_UINT64
-      printf("{ 0x%016llxull }", s[i][j]);
+      printf("{ 0x%016llxull }", s[i][j].i);
 #else
       printf("{ 0x%08lx, 0x%08lx }",
             (unsigned long)s[i][j].hi, (unsigned long)s[i][j].lo);
 #else
       printf("{ 0x%08lx, 0x%08lx }",
             (unsigned long)s[i][j].hi, (unsigned long)s[i][j].lo);