From 5c490b063a95e43c88f035f4c0c4cc083dca396c Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 21 Jan 2005 13:31:02 +0000 Subject: Whitespace/style tweaking of prev. commit. Noted by: bde --- lib/libc/stdlib/strtoul.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/libc/stdlib/strtoul.c') diff --git a/lib/libc/stdlib/strtoul.c b/lib/libc/stdlib/strtoul.c index a8e3736..8bcc2a4 100644 --- a/lib/libc/stdlib/strtoul.c +++ b/lib/libc/stdlib/strtoul.c @@ -74,10 +74,9 @@ strtoul(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; -- cgit v1.1