Skip to content

Commit

Permalink
Use %ld/%lx for uint64_t when 64bit long
Browse files Browse the repository at this point in the history
  • Loading branch information
yoheie committed Oct 6, 2016
1 parent a296490 commit fa1d8c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/header.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fa1d8c2

Please sign in to comment.