diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 1e8d8c3f5..e6a46ad93 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2005-04-28 Jeff Johnston + + * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko + when checking for multiple flags. + 2005-04-18 Hans-Peter Nilsson * configure.host : Set diff --git a/newlib/libc/stdio/vfscanf.c b/newlib/libc/stdio/vfscanf.c index 80c652aba..ae2581a3b 100644 --- a/newlib/libc/stdio/vfscanf.c +++ b/newlib/libc/stdio/vfscanf.c @@ -1050,7 +1050,8 @@ _DEFUN(__SVFSCANF_R, (rptr, fp, fmt0, ap), case 'n': case 'N': if (nancount == 0 - && (flags & (SIGNOK | NDIGITS | DPTOK | EXPOK))) + && (flags & (SIGNOK | NDIGITS | DPTOK | EXPOK)) == + (SIGNOK | NDIGITS | DPTOK | EXPOK)) { flags &= ~(SIGNOK | DPTOK | EXPOK | NDIGITS); nancount = 1;