scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit de4a01e3647c6dd47caafd659c913df74d62bd7d
parent 04c2a5d9a2b8473046e076f810ff087af02e9ef6
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon, 26 Feb 2018 14:00:23 +0100

libc: vfprintf(), fix cast for long long

Diffstat:
Mlib/c/vfprintf.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/c/vfprintf.c b/lib/c/vfprintf.c @@ -53,8 +53,8 @@ getnum(va_list va, int flags, int *sign) 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) {