aboutsummaryrefslogtreecommitdiff
path: root/libiberty/strtoul.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2000-02-22 15:59:20 +0000
committerIan Lance Taylor <ian@airs.com>2000-02-22 15:59:20 +0000
commite2eaf477991014a67bc122c3225f6a3fe6d1a8e6 (patch)
tree5937dcfd1baa6d55a635fde513e946dc33a05ca3 /libiberty/strtoul.c
parent252b5132c753830d5fd56823373aed85f2a0db63 (diff)
downloadgdb-e2eaf477991014a67bc122c3225f6a3fe6d1a8e6.zip
gdb-e2eaf477991014a67bc122c3225f6a3fe6d1a8e6.tar.gz
gdb-e2eaf477991014a67bc122c3225f6a3fe6d1a8e6.tar.bz2
import libiberty from egcs
Diffstat (limited to 'libiberty/strtoul.c')
-rw-r--r--libiberty/strtoul.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libiberty/strtoul.c b/libiberty/strtoul.c
index ff6f2d6..2ec3204 100644
--- a/libiberty/strtoul.c
+++ b/libiberty/strtoul.c
@@ -10,10 +10,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
+ * 3. [rescinded 22 July 1999]
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
@@ -91,7 +88,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;