diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2005-01-21 13:31:02 +0000 | 
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2005-01-21 13:31:02 +0000 | 
| commit | db0e25eeb95a49537186f5c2e8b5c9f31a59c859 (patch) | |
| tree | 6e0bf54e50b5b0faef9e1a626bded3f45f932aba /lib/libc/stdlib/strtol.c | |
| parent | 720e293ae7d1034356e769bd2ab4a4c079e888f4 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdlib/strtol.c')
| -rw-r--r-- | lib/libc/stdlib/strtol.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/stdlib/strtol.c b/lib/libc/stdlib/strtol.c index 5aae7f9dc0bc..1a6e818435be 100644 --- a/lib/libc/stdlib/strtol.c +++ b/lib/libc/stdlib/strtol.c @@ -77,10 +77,9 @@ strtol(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;  | 
