]> git.lizzy.rs Git - plan9front.git/commitdiff
ape/stdio: %z format is VLONG on amd64
authorcinap_lenrek <cinap_lenrek@felloff.net>
Thu, 7 Jan 2016 18:20:30 +0000 (19:20 +0100)
committercinap_lenrek <cinap_lenrek@felloff.net>
Thu, 7 Jan 2016 18:20:30 +0000 (19:20 +0100)
sys/src/ape/lib/ap/stdio/vfprintf.c

index 4e40714cd9801f1a7d9ed4bcf2f8647fc28c8a54..d346cb29a2358411680d36a35d12b52de9ae119e 100644 (file)
@@ -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;