diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-11-29 03:03:55 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-11-29 03:03:55 +0000 |
commit | 2209d8a27cab0673772361c7b03ba315578e275e (patch) | |
tree | cf8cf5a8af36a117ceb01961a37e4d4159baf2a9 /lib/libc/stdlib/strtoull.c | |
parent | e1a5ca24cac961bfbbfd802b52f827f3255d98cd (diff) |
Notes
Diffstat (limited to 'lib/libc/stdlib/strtoull.c')
-rw-r--r-- | lib/libc/stdlib/strtoull.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdlib/strtoull.c b/lib/libc/stdlib/strtoull.c index 34678fe64089a..adb655681da90 100644 --- a/lib/libc/stdlib/strtoull.c +++ b/lib/libc/stdlib/strtoull.c @@ -90,7 +90,7 @@ strtoull(nptr, endptr, base) cutoff = ULLONG_MAX / base; cutlim = ULLONG_MAX % base; for ( ; ; c = *s++) { - if (isdigit(c) || (base == 16 && isxdigit(c))) + if (isxdigit(c)) c = digittoint(c); else if (isascii(c) && isalpha(c)) c -= isupper(c) ? 'A' - 10 : 'a' - 10; |