aboutsummaryrefslogtreecommitdiff
path: root/libiberty/strtoul.c
diff options
context:
space:
mode:
authorPhilippe De Muyter <phdm@macqel.be>1999-08-24 10:51:03 +0200
committerJeff Law <law@gcc.gnu.org>1999-08-24 02:51:03 -0600
commit55247fce700ed0937de9de1bb7640c246513a1ad (patch)
tree6d4cc143fda1cfa3dd9c52f5ed0b0ab64d0c2321 /libiberty/strtoul.c
parentd60eaeffd59d918196a8088a775726ef87a95127 (diff)
downloadgcc-55247fce700ed0937de9de1bb7640c246513a1ad.zip
gcc-55247fce700ed0937de9de1bb7640c246513a1ad.tar.gz
gcc-55247fce700ed0937de9de1bb7640c246513a1ad.tar.bz2
* strtoul.c (strtoul): Add parentheses around && within ||.
From-SVN: r28819
Diffstat (limited to 'libiberty/strtoul.c')
-rw-r--r--libiberty/strtoul.c2
1 files changed, 1 insertions, 1 deletions
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;