diff options
author | Eric Blake <eblake@redhat.com> | 2007-05-24 04:25:18 +0000 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2007-05-24 04:25:18 +0000 |
commit | aa5341f9aca1ad753bd47dffc9a53fc4bfe96f95 (patch) | |
tree | 46cf9fb862fd5a053f16e5ab734c89eb78b0da54 /newlib/libc/stdio/vfprintf.c | |
parent | 443f9c5532fe6566dc8583b66cbcb40a8fc7846a (diff) | |
download | cygnal-aa5341f9aca1ad753bd47dffc9a53fc4bfe96f95.tar.gz cygnal-aa5341f9aca1ad753bd47dffc9a53fc4bfe96f95.tar.bz2 cygnal-aa5341f9aca1ad753bd47dffc9a53fc4bfe96f95.zip |
* libc/stdio/vfprintf.c (_VFPRINTF_R): Don't truncate %p when
sizeof(void*) is 8 but sizeof(long) is 4.
* libc/stdio/vfscanf.c (__SVFSCANF_R): Likewise. Fix %i scanning
of "-0x". Support "-nan" and "inf" for %e. Audit usage of ungetc
to fix reentrancy and bug on encoding error in multibyte locales.
Always return EOF on read error.
Diffstat (limited to 'newlib/libc/stdio/vfprintf.c')
-rw-r--r-- | newlib/libc/stdio/vfprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c index e734cb19c..36b14afcc 100644 --- a/newlib/libc/stdio/vfprintf.c +++ b/newlib/libc/stdio/vfprintf.c @@ -1017,7 +1017,7 @@ reswitch: switch (ch) { * -- ANSI X3J11 */ /* NOSTRICT */ - _uquad = (u_long)(unsigned _POINTER_INT)GET_ARG (N, ap, void_ptr_t); + _uquad = (uintptr_t) GET_ARG (N, ap, void_ptr_t); base = HEX; xdigs = "0123456789abcdef"; flags |= HEXPREFIX; |