shithub: scc

Download patch

ref: 79b9a5d60b5790789823b721434f96bd4d88686c
parent: d278581748408090b5f80c955a256264b3a9dd69
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Sep 1 20:37:07 EDT 2018

[lib/c] Fix numtostr()

--- a/lib/c/vfprintf.c
+++ b/lib/c/vfprintf.c
@@ -64,7 +64,7 @@
 		uval = (uintmax_t) va_arg(va, void *);
 	} else {
 		val = va_arg(va, int);
-		uval = (unsigned) uval;
+		uval = (unsigned) val;
 	}
 
 	if ((flags & UNSIGNED) == 0 && val < 0) {