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:
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;