Skip to content

Commit

Permalink
Use %llu for off_t only when SIZEOF_LONG < SIZEOF_OFF_T
Browse files Browse the repository at this point in the history
  • Loading branch information
yoheie committed Oct 6, 2016
1 parent 003664d commit a296490
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lhlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
static void
print_size(off_t packed_size, off_t original_size)
{
#if SIZEOF_OFF_T == 8
#if SIZEOF_LONG < SIZEOF_OFF_T
if (verbose_listing)
printf("%7llu ", packed_size);

Expand Down
4 changes: 2 additions & 2 deletions src/slide.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ decode(interface)
c = decode_set.decode_c();
if (c < 256) {
if (dump_lzss) {
#if SIZEOF_OFF_T == 8
#if SIZEOF_LONG < SIZEOF_OFF_T
printf("%04llu %02x(%c)\n",
decode_count, c, isprint(c) ? c : '?');
#else
Expand All @@ -461,7 +461,7 @@ decode(interface)
match.off = decode_set.decode_p() + 1;
matchpos = (loc - match.off) & dicsiz1;
if (dump_lzss) {
#if SIZEOF_OFF_T == 8
#if SIZEOF_LONG < SIZEOF_OFF_T
printf("%04llu <%u %llu>\n",
decode_count, match.len, decode_count-match.off);
#else
Expand Down

0 comments on commit a296490

Please sign in to comment.