From 55247fce700ed0937de9de1bb7640c246513a1ad Mon Sep 17 00:00:00 2001 From: Philippe De Muyter Date: Tue, 24 Aug 1999 10:51:03 +0200 Subject: [PATCH] * strtoul.c (strtoul): Add parentheses around && within ||. From-SVN: r28819 --- libiberty/ChangeLog | 4 ++++ libiberty/strtoul.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 + + * strtoul.c (strtoul): Add parentheses around && within ||. + Fri Aug 6 23:32:29 1999 Daniel Jacobowitz * 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;