diff options
Diffstat (limited to 'lib/libc/stdlib/strtoll.c')
-rw-r--r-- | lib/libc/stdlib/strtoll.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/stdlib/strtoll.c b/lib/libc/stdlib/strtoll.c index 6cbe76a..f965892 100644 --- a/lib/libc/stdlib/strtoll.c +++ b/lib/libc/stdlib/strtoll.c @@ -76,10 +76,9 @@ strtoll(const char * __restrict nptr, char ** __restrict endptr, int base) } if ((base == 0 || base == 16) && c == '0' && (*s == 'x' || *s == 'X') && - ((s[1] >= 'a' && s[1] <= 'f') || - (s[1] >= 'A' && s[1] <= 'F') || - (s[1] >= '0' && s[1] <= '9')) - ) { + ((s[1] >= '0' && s[1] <= '9') || + (s[1] >= 'A' && s[1] <= 'F') || + (s[1] >= 'a' && s[1] <= 'f'))) { c = s[1]; s += 2; base = 16; |