mirror of
https://github.com/mirror/wget.git
synced 2025-01-05 09:50:27 +08:00
* src/wget.h: Add inline to _unhex
This commit is contained in:
parent
0bb97fecb7
commit
473db08580
@ -241,7 +241,7 @@ typedef double SUM_SIZE_INT;
|
||||
/* Convert an ASCII hex digit to the corresponding number between 0
|
||||
and 15. c should be a hexadecimal digit that satisfies c_isxdigit;
|
||||
otherwise, the result is undefined. */
|
||||
static unsigned char _unhex(unsigned char c)
|
||||
static inline unsigned char _unhex(unsigned char c)
|
||||
{
|
||||
return c <= '9' ? c - '0' : (c <= 'F' ? c - 'A' + 10 : c - 'a' + 10);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user