Browse Source

fix from Atsushi Nemoto for displaying of 64bit types

Mike Frysinger 18 years ago
parent
commit
152874f9ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/stdio/_vfprintf.c

+ 1 - 1
libc/stdio/_vfprintf.c

@@ -1566,7 +1566,7 @@ static int _do_one_spec(FILE * __restrict stream,
 #endif /* __UCLIBC_MJN3_ONLY__ */
 #endif /* __UCLIBC_MJN3_ONLY__ */
 			s = _uintmaxtostr(buf + sizeof(buf) - 1,
 			s = _uintmaxtostr(buf + sizeof(buf) - 1,
 							  (uintmax_t)
 							  (uintmax_t)
-							  _load_inttype(*argtype & __PA_INTMASK,
+							  _load_inttype(ppfs->conv_num == CONV_p ? PA_FLAG_LONG : *argtype & __PA_INTMASK,
 											*argptr, base), base, alphacase);
 											*argptr, base), base, alphacase);
 			if (ppfs->conv_num > CONV_u) { /* signed int */
 			if (ppfs->conv_num > CONV_u) { /* signed int */
 				if (*s == '-') {
 				if (*s == '-') {