From fa1d8c235ef4a09ebad52e64a9dc4144363bd78c Mon Sep 17 00:00:00 2001 From: Yohei Endo Date: Mon, 18 Jan 2016 18:50:51 +0900 Subject: [PATCH] Use %ld/%lx for uint64_t when 64bit long --- src/header.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/header.c b/src/header.c index aeb3163..a989901 100644 --- a/src/header.c +++ b/src/header.c @@ -210,7 +210,11 @@ get_longlongword() l |= (b3 << 24) + (b2 << 16) + (b1 << 8) + b0; #if DUMP_HEADER if (verbose_listing && verbose > 1) +#if SIZEOF_LONG < 8 printf("%lld(%#016llx)\n", l, l); +#else + printf("%ld(%#016lx)\n", l, l); +#endif #endif return l; }