diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-07-12 18:57:58 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-07-12 18:57:58 +0000 |
commit | 51295a4d3e4c551df85249433c490208dc7fd23d (patch) | |
tree | c116431af8e1f042b25e0f70c63c437cf7ff8d63 /lib/libc/stdlib/strtoul.c | |
parent | af7a29993083b1562f01c87bb774fbe4fc3579e7 (diff) |
Notes
Diffstat (limited to 'lib/libc/stdlib/strtoul.c')
-rw-r--r-- | lib/libc/stdlib/strtoul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdlib/strtoul.c b/lib/libc/stdlib/strtoul.c index 0bf6b82ef085..304150a546a4 100644 --- a/lib/libc/stdlib/strtoul.c +++ b/lib/libc/stdlib/strtoul.c @@ -90,7 +90,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; |