summaryrefslogtreecommitdiff
path: root/libc/stdio
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-01-29 04:07:37 +0000
committerMike Frysinger <vapier@gentoo.org>2007-01-29 04:07:37 +0000
commit152874f9ea75239b674bc3f9b635887e66d40c35 (patch)
treee2348e40e8354060102a253fa3ffe1ba55586ae5 /libc/stdio
parent544bc399b709274d40839f2ed7d16db1fc8edb37 (diff)
fix from Atsushi Nemoto for displaying of 64bit types
Diffstat (limited to 'libc/stdio')
-rw-r--r--libc/stdio/_vfprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdio/_vfprintf.c b/libc/stdio/_vfprintf.c
index 3a5a0e92d..571b99c2b 100644
--- a/libc/stdio/_vfprintf.c
+++ b/libc/stdio/_vfprintf.c
@@ -1566,7 +1566,7 @@ static int _do_one_spec(FILE * __restrict stream,
#endif /* __UCLIBC_MJN3_ONLY__ */
s = _uintmaxtostr(buf + sizeof(buf) - 1,
(uintmax_t)
- _load_inttype(*argtype & __PA_INTMASK,
+ _load_inttype(ppfs->conv_num == CONV_p ? PA_FLAG_LONG : *argtype & __PA_INTMASK,
*argptr, base), base, alphacase);
if (ppfs->conv_num > CONV_u) { /* signed int */
if (*s == '-') {