summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2018-04-16 23:54:03 (GMT)
committerYann Collet <cyan@fb.com>2018-04-16 23:54:03 (GMT)
commita3aeb34184e20d51616beccfcbbe7aade3cc3a64 (patch)
tree19ebc089c28d8f55bc87a49c894dd166d214efd7 /lib
parent4aff9b10b56e44b2ff6326f611c3659565812d80 (diff)
downloadlz4-a3aeb34184e20d51616beccfcbbe7aade3cc3a64.zip
lz4-a3aeb34184e20d51616beccfcbbe7aade3cc3a64.tar.gz
lz4-a3aeb34184e20d51616beccfcbbe7aade3cc3a64.tar.bz2
fixed minor format warnings
Diffstat (limited to 'lib')
-rw-r--r--lib/lz4.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index c2012f6..980a5fd 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -785,7 +785,7 @@ LZ4_FORCE_INLINE int LZ4_compress_generic(
/* Copy Literals */
LZ4_wildCopy(op, anchor, op+litLength);
op+=litLength;
- DEBUGLOG(6, "seq.start:%zi, literals=%u, match.start:%zi", anchor-(const BYTE*)source, litLength, ip-(const BYTE*)source);
+ DEBUGLOG(6, "seq.start:%i, literals=%u, match.start:%i", (int)(anchor-(const BYTE*)source), litLength, (int)(ip-(const BYTE*)source));
}
_next_match:
@@ -801,7 +801,7 @@ _next_match:
if (maybe_ext_memSegment) { /* static test */
assert(offset <= MAX_DISTANCE && offset > 0);
LZ4_writeLE16(op, (U16)offset); op+=2;
- DEBUGLOG(6, " with offset=%u (ext if > %zi)", offset, ip - (const BYTE*)source);
+ DEBUGLOG(6, " with offset=%u (ext if > %i)", offset, (int)(ip - (const BYTE*)source));
} else {
assert(ip-match <= MAX_DISTANCE);
LZ4_writeLE16(op, (U16)(ip - match)); op+=2;
@@ -901,7 +901,7 @@ _next_match:
*token=0;
if (maybe_ext_memSegment)
offset = current - matchIndex;
- DEBUGLOG(6, "seq.start:%zi, literals=%u, match.start:%zi", anchor-(const BYTE*)source, 0, ip-(const BYTE*)source);
+ DEBUGLOG(6, "seq.start:%i, literals=%u, match.start:%i", (int)(anchor-(const BYTE*)source), 0, (int)(ip-(const BYTE*)source));
goto _next_match;
}
}