diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-11-28 06:06:27 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-11-28 06:06:27 +0000 |
commit | 87c25490c8e1beb3ccb5c65c5fd414c410695403 (patch) | |
tree | 7fda1da266f5c4d254c366b8856290fa9ad01569 /lib/libc/stdlib/strtoull.c | |
parent | 7bbd0c8b5bfe82f4bcb9c3e2098b54543bd94828 (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 adb655681da90..34678fe64089a 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 (isxdigit(c)) + if (isdigit(c) || (base == 16 && isxdigit(c))) c = digittoint(c); else if (isascii(c) && isalpha(c)) c -= isupper(c) ? 'A' - 10 : 'a' - 10; |