summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/strtoumax.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-11-29 03:03:55 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-11-29 03:03:55 +0000
commit2209d8a27cab0673772361c7b03ba315578e275e (patch)
treecf8cf5a8af36a117ceb01961a37e4d4159baf2a9 /lib/libc/stdlib/strtoumax.c
parente1a5ca24cac961bfbbfd802b52f827f3255d98cd (diff)
Notes
Diffstat (limited to 'lib/libc/stdlib/strtoumax.c')
-rw-r--r--lib/libc/stdlib/strtoumax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdlib/strtoumax.c b/lib/libc/stdlib/strtoumax.c
index bdcfbd7b7231..ea592459b4b4 100644
--- a/lib/libc/stdlib/strtoumax.c
+++ b/lib/libc/stdlib/strtoumax.c
@@ -90,7 +90,7 @@ strtoumax(nptr, endptr, base)
cutoff = UINTMAX_MAX / base;
cutlim = UINTMAX_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;