diff options
author | Ian Lance Taylor <ian@airs.com> | 2000-02-22 16:18:13 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2000-02-22 16:18:13 +0000 |
commit | 9e7fba8ade016a355d662ba84005773746a3c7c0 (patch) | |
tree | 66613bc864c3dd53c6ad2571513130fa98da08f2 /libiberty/strtoul.c | |
parent | f507d52b48cf10a4a5b82548478505edc89df964 (diff) | |
download | gdb-9e7fba8ade016a355d662ba84005773746a3c7c0.tar.gz |
import libiberty from egcs
Diffstat (limited to 'libiberty/strtoul.c')
-rw-r--r-- | libiberty/strtoul.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libiberty/strtoul.c b/libiberty/strtoul.c index ff6f2d6784d..2ec32043e6b 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; |