* strtoul.c (strtoul): Add parentheses around && within ||.
authorPhilippe De Muyter <phdm@macqel.be>
Tue, 24 Aug 1999 08:51:03 +0000 (10:51 +0200)
committerJeff Law <law@gcc.gnu.org>
Tue, 24 Aug 1999 08:51:03 +0000 (02:51 -0600)
From-SVN: r28819

libiberty/ChangeLog
libiberty/strtoul.c

index 12177a8db543b2c7ef9d9d3721e976fce59f37c0..ccea46f40ca538ea3715aa7c4ab541d1c531d322 100644 (file)
@@ -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,
index ff6f2d6784dd9ad7c28b9c426fd7264271234f55..db371dd1dc574a17ffe0f9677d0455047fad834a 100644 (file)
@@ -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;