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 /orc-test | |
parent | 54d33bbc53a3675c85a8bcdff0e902c6e4857e60 (diff) |
Eliminate usage of %lld, etc.
Diffstat (limited to 'orc-test')
-rw-r--r-- | orc-test/orctest.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/orc-test/orctest.c b/orc-test/orctest.c index 0af37f4..22eaf68 100644 --- a/orc-test/orctest.c +++ b/orc-test/orctest.c @@ -376,7 +376,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; @@ -401,7 +402,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; @@ -426,7 +428,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; |