summaryrefslogtreecommitdiff
path: root/libiberty/strtoul.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-24 08:51:03 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-24 08:51:03 +0000
commit4f3b4661140a1e1a68cd62d46ad9d0d14cfb80b9 (patch)
tree6d4cc143fda1cfa3dd9c52f5ed0b0ab64d0c2321 /libiberty/strtoul.c
parentfc10bba793c83ddb05c9de4645ebf90a82cfb9c7 (diff)
downloadgcc-4f3b4661140a1e1a68cd62d46ad9d0d14cfb80b9.tar.gz
* strtoul.c (strtoul): Add parentheses around && within ||.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28819 138bc75d-0d04-0410-961f-82ee72b054a4
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 ff6f2d6784d..db371dd1dc5 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;