summaryrefslogtreecommitdiff
path: root/libiberty
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
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')
-rw-r--r--libiberty/ChangeLog4
-rw-r--r--libiberty/strtoul.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 12177a8db54..ccea46f40ca 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 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;