diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-07 19:20:30 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-07 19:20:30 +0100 |
commit | 6a651b42ac8cdd639e6258dd24f097132983b4dc (patch) | |
tree | f421ef4f846401394432e624fefd539d7dd2477e /sys/src/ape | |
parent | 4308f6e7e6586e3a27aa46c4d54c434b8533b16d (diff) |
ape/stdio: %z format is VLONG on amd64
Diffstat (limited to 'sys/src/ape')
-rw-r--r-- | sys/src/ape/lib/ap/stdio/vfprintf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/src/ape/lib/ap/stdio/vfprintf.c b/sys/src/ape/lib/ap/stdio/vfprintf.c index 4e40714cd..d346cb29a 100644 --- a/sys/src/ape/lib/ap/stdio/vfprintf.c +++ b/sys/src/ape/lib/ap/stdio/vfprintf.c @@ -188,6 +188,10 @@ vfprintf(FILE *f, const char *s, va_list args) } else precision = -1; + + if(sizeof(void*) == sizeof(long long)) + tflag['z'] = VLONG; + while(tfl = tflag[*s&_IO_CHMASK]){ if(tfl == LONG && (flags & LONG)){ flags &= ~LONG; |