diff options
author | Philippe De Muyter <phdm@macqel.be> | 1999-08-24 10:51:03 +0200 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-08-24 02:51:03 -0600 |
commit | 55247fce700ed0937de9de1bb7640c246513a1ad (patch) | |
tree | 6d4cc143fda1cfa3dd9c52f5ed0b0ab64d0c2321 /libiberty | |
parent | d60eaeffd59d918196a8088a775726ef87a95127 (diff) | |
download | gcc-55247fce700ed0937de9de1bb7640c246513a1ad.zip gcc-55247fce700ed0937de9de1bb7640c246513a1ad.tar.gz gcc-55247fce700ed0937de9de1bb7640c246513a1ad.tar.bz2 |
* strtoul.c (strtoul): Add parentheses around && within ||.
From-SVN: r28819
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 4 | ||||
-rw-r--r-- | libiberty/strtoul.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 12177a8..ccea46f 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -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, diff --git a/libiberty/strtoul.c b/libiberty/strtoul.c index ff6f2d6..db371dd 100644 --- a/libiberty/strtoul.c +++ b/libiberty/strtoul.c @@ -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; |