diff options
| author | David Schleef <ds@schleef.org> | 2010-09-06 00:15:32 -0700 |
|---|---|---|
| committer | David Schleef <ds@schleef.org> | 2010-09-06 00:41:57 -0700 |
| commit | ea8c1a37cabec40dc89ca4c9709cafb3e9039fc6 (patch) | |
| tree | 56838f55c1d76bddfcb8478d56bb92efd1d23799 /testsuite | |
| parent | 54d33bbc53a3675c85a8bcdff0e902c6e4857e60 (diff) | |
Eliminate usage of %lld, etc.
Diffstat (limited to 'testsuite')
| -rw-r--r-- | testsuite/show_parse.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/testsuite/show_parse.c b/testsuite/show_parse.c index 6796f6a..f6f9daa 100644 --- a/testsuite/show_parse.c +++ b/testsuite/show_parse.c @@ -151,7 +151,8 @@ print_array_val_signed (OrcArray *array, int i, int j) printf(" %10d", *(orc_int32 *)ptr); return *(orc_int32 *)ptr; case 8: - printf(" %20lld", (long long)*(orc_int64 *)ptr); + printf(" 0x%08x%08x", (orc_uint32)((*(orc_uint64 *)ptr)>>32), + (orc_uint32)((*(orc_uint64 *)ptr))); return *(orc_int64 *)ptr; default: return -1; @@ -175,7 +176,8 @@ print_array_val_unsigned (OrcArray *array, int i, int j) printf(" %10u", *(orc_uint32 *)ptr); return *(orc_int32 *)ptr; case 8: - printf(" %20llu", (long long)*(orc_uint64 *)ptr); + printf(" 0x%08x%08x", (orc_uint32)((*(orc_uint64 *)ptr)>>32), + (orc_uint32)((*(orc_uint64 *)ptr))); return *(orc_int64 *)ptr; default: return -1; @@ -199,7 +201,8 @@ print_array_val_hex (OrcArray *array, int i, int j) printf(" %08x", *(orc_uint32 *)ptr); return *(orc_int32 *)ptr; case 8: - printf(" %016llx", (long long)*(orc_uint64 *)ptr); + printf(" 0x%08x%08x", (orc_uint32)((*(orc_uint64 *)ptr)>>32), + (orc_uint32)((*(orc_uint64 *)ptr))); return *(orc_int64 *)ptr; default: return -1; |
