* strtoul.c (strtoul): Add parentheses around && within ||.

From-SVN: r28819
This commit is contained in:
Philippe De Muyter 1999-08-24 10:51:03 +02:00 committed by Jeff Law
parent d60eaeffd5
commit 55247fce70
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
* strtoul.c (strtoul): Add parentheses around && within ||.
Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
* Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,

View File

@ -91,7 +91,7 @@ strtoul(nptr, endptr, base)
break;
if (c >= base)
break;
if (any < 0 || acc > cutoff || acc == cutoff && c > cutlim)
if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
any = -1;
else {
any = 1;