From: John Hodge Date: Thu, 11 Jul 2013 06:30:29 +0000 (+0800) Subject: Usermode/libc - Fixed %x/%X being signed in printf X-Git-Tag: rel0.15~364 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=49e5712c717c8960e12097e976335ed955e6cd50;p=tpg%2Facess2.git Usermode/libc - Fixed %x/%X being signed in printf --- diff --git a/Usermode/Libraries/libc.so_src/printf.c b/Usermode/Libraries/libc.so_src/printf.c index adbe98eb..1b61cba8 100644 --- a/Usermode/Libraries/libc.so_src/printf.c +++ b/Usermode/Libraries/libc.so_src/printf.c @@ -1,4 +1,4 @@ -/* +#include /* * Acess2 C Library * - By John Hodge (thePowersGang) * @@ -200,7 +200,7 @@ EXPORT int _vcprintf_int(printf_putch_t putch_cb, void *putch_h, const char *for _addchar('0'); _addchar(c); } - arg = bLongLong ? va_arg(args, int64_t) : va_arg(args, int32_t); + arg = bLongLong ? va_arg(args, uint64_t) : va_arg(args, uint32_t); pos += _printf_itoa(putch_cb, putch_h, arg, 16, c=='X', FALSE, '\0', precision, minSize,cNumPad,bJustifyLeft); break;