shithub: scc

Download patch

ref: 9ba63804f6efd8bd11fd8b9b9a617906baeb7a1b
parent: 38016d871780c343aeba12f9ab10f9c59224b5e4
author: Hiltjo Posthuma <hiltjo@codemadness.org>
date: Mon Feb 26 09:00:23 EST 2018

libc: vfprintf(), fix cast for long long

--- a/lib/c/vfprintf.c
+++ b/lib/c/vfprintf.c
@@ -53,8 +53,8 @@
 		val = va_arg(va, long);
 		uval = (unsigned long) val;
 	} else if (flags & LLONG) {
-		val = uval = va_arg(va, long long);
-		uval = (unsigned long long) uval;
+		val = va_arg(va, long long);
+		uval = (unsigned long long) val;
 	} else if (flags & SIZET) {
 		uval = va_arg(va, size_t);
 	} else if (flags & INTMAX) {