From 0dba2fd127d1a6c31e849daf93d6c7c1cf8ce8be Mon Sep 17 00:00:00 2001 From: Yohei Endo Date: Mon, 18 Jan 2016 18:23:54 +0900 Subject: [PATCH] Use %llu for off_t only when SIZEOF_LONG < SIZEOF_OFF_T --- src/lhlist.c | 2 +- src/slide.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lhlist.c b/src/lhlist.c index 5367603..d0cd1bf 100644 --- a/src/lhlist.c +++ b/src/lhlist.c @@ -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); diff --git a/src/slide.c b/src/slide.c index 4b94130..69a4f95 100644 --- a/src/slide.c +++ b/src/slide.c @@ -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 @@ -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