summaryrefslogtreecommitdiff
path: root/sys/src/libflate
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-01-07 04:44:13 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2016-01-07 04:44:13 +0100
commit772afbe98c7e74be35e7e5318967ce594e4d93e8 (patch)
tree006ef64214c4ab980ff3125ea812f42235706b5b /sys/src/libflate
parent9c99d0c8d3236b87bd292ac29d4d1b2d5f550bd5 (diff)
format pointer subtraction results with %zd instead of %ld (for long -> intptr on amd64)
Diffstat (limited to 'sys/src/libflate')
-rw-r--r--sys/src/libflate/deflate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libflate/deflate.c b/sys/src/libflate/deflate.c
index 3a55af3f1..1eb7e866c 100644
--- a/sys/src/libflate/deflate.c
+++ b/sys/src/libflate/deflate.c
@@ -478,7 +478,7 @@ deflateb(LZstate *lz, LZblock *lzb, void *rr, int (*r)(void*, void*, int))
lzput(lz, lz->eof && !lz->avail, 1);
if(lz->debug){
- fprint(2, "block: bytes=%lud entries=%ld extra bits=%d\n\tuncompressed=%lud fixed=%lud dynamic=%lud huffman=%lud\n",
+ fprint(2, "block: bytes=%lud entries=%zd extra bits=%d\n\tuncompressed=%lud fixed=%lud dynamic=%lud huffman=%lud\n",
nunc, lzb->eparse - lzb->parse, lzb->excost, (nunc + 4) * 8, nfix, ndyn, nhuff);
fprint(2, "\tnlit=%lud matches=%lud eof=%d\n", nlits, nmatches, lz->eof && !lz->avail);
}