summaryrefslogtreecommitdiff
path: root/sys/src/cmd/jpg
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/cmd/jpg
parent9c99d0c8d3236b87bd292ac29d4d1b2d5f550bd5 (diff)
format pointer subtraction results with %zd instead of %ld (for long -> intptr on amd64)
Diffstat (limited to 'sys/src/cmd/jpg')
-rw-r--r--sys/src/cmd/jpg/ico.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/jpg/ico.c b/sys/src/cmd/jpg/ico.c
index 0f2411961..ea7ba9a7e 100644
--- a/sys/src/cmd/jpg/ico.c
+++ b/sys/src/cmd/jpg/ico.c
@@ -304,7 +304,7 @@ Bgeticon(Biobuf *b, Icon *icon)
xor += 4*ncolor;
end = xor + icon->h*4*((icon->bits*icon->w+31)/32);
if(end < buf || end > buf+icon->len){
- werrstr("bad icon length %lux != %lux", end - buf, icon->len);
+ werrstr("bad icon length %zux != %lux", end - buf, icon->len);
return -1;
}