diff src/debug.c @ 90:631d02d30a1c

More fixes for 32/64 bit portability on big endian ppc.
author Carl Byington <carl@five-ten-sg.com>
date Tue, 05 Aug 2008 11:52:29 -0700
parents 56fa05fd5271
children 9bd455802437
line wrap: on
line diff
--- a/src/debug.c	Tue Aug 05 10:11:41 2008 -0700
+++ b/src/debug.c	Tue Aug 05 11:52:29 2008 -0700
@@ -55,7 +55,7 @@
     if (col == -1) col = NUM_COL;
     fprintf(out, "\n");
     while (off < size) {
-        fprintf(out, "%06X\t:", off+delta);
+        fprintf(out, "%06"PRIx64"\t:", (uint64_t)(off+delta));
         toff = off;
         while (count < col && off < size) {
             fprintf(out, "%02hhx ", (unsigned char)buf[off]);