shithub: riscv

Download patch

ref: 6a651b42ac8cdd639e6258dd24f097132983b4dc
parent: 4308f6e7e6586e3a27aa46c4d54c434b8533b16d
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Jan 7 14:20:30 EST 2016

ape/stdio: %z format is VLONG on amd64

--- a/sys/src/ape/lib/ap/stdio/vfprintf.c
+++ b/sys/src/ape/lib/ap/stdio/vfprintf.c
@@ -188,6 +188,10 @@
 		}
 		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;