summaryrefslogtreecommitdiff
path: root/sys/src/ape/lib/fmt/dofmt.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-09-14 00:18:45 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-09-14 00:18:45 +0200
commit7bcbef11eb17d0b5f756acd74762d1a285aa134f (patch)
treedab03b0277fea9829dd726fe1d2ef0307107feaf /sys/src/ape/lib/fmt/dofmt.c
parenta0150376df022be9cf3d9e82308007f4588603a9 (diff)
ape: fix format clash, %z is for size_t (which is a long currently), not pointer sized
Diffstat (limited to 'sys/src/ape/lib/fmt/dofmt.c')
-rw-r--r--sys/src/ape/lib/fmt/dofmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/ape/lib/fmt/dofmt.c b/sys/src/ape/lib/fmt/dofmt.c
index 3422e62cd..a3b42ae7a 100644
--- a/sys/src/ape/lib/fmt/dofmt.c
+++ b/sys/src/ape/lib/fmt/dofmt.c
@@ -544,7 +544,7 @@ __flagfmt(Fmt *f)
break;
case 'z':
f->flags |= FmtLong;
- if(sizeof(void*) == sizeof(vlong))
+ if(sizeof(size_t) == sizeof(vlong))
f->flags |= FmtVLong;
break;
}