Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2004-06-02 23:22:14 +0400
committerJeff Johnston <jjohnstn@redhat.com>2004-06-02 23:22:14 +0400
commit8b57e664af6cedcbd20a5f4c37ee364b5e13e97a (patch)
treea679439a66472010c5d5d84dfec27d62d88a0b7a /newlib/libc/machine
parentcdb055db024e12c06a7f3eff2480b38b1cac2c14 (diff)
2004-06-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfscanf.c (__svfscanf_r): For CT_INT conversions, reset digit flags appropriately after we have discovered "0x". * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
Diffstat (limited to 'newlib/libc/machine')
-rw-r--r--newlib/libc/machine/powerpc/vfscanf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/machine/powerpc/vfscanf.c b/newlib/libc/machine/powerpc/vfscanf.c
index c0d48a886..602fd7735 100644
--- a/newlib/libc/machine/powerpc/vfscanf.c
+++ b/newlib/libc/machine/powerpc/vfscanf.c
@@ -911,6 +911,10 @@ __svfscanf_r (rptr, fp, fmt0, ap)
{
base = 16;/* if %i */
flags &= ~PFXOK;
+ /* We must reset the NZDIGITS and NDIGITS
+ flags that would have been unset by seeing
+ the zero that preceded the X or x. */
+ flags |= NZDIGITS | NDIGITS;
goto ok;
}
break;