Accept lower-case in fromhex()
This commit is contained in:
@@ -68,6 +68,9 @@ static inline int fromhex (const char c)
|
|||||||
if (c>='A' && c<='F')
|
if (c>='A' && c<='F')
|
||||||
return c-'A'+10;
|
return c-'A'+10;
|
||||||
|
|
||||||
|
if (c>='a' && c<='f')
|
||||||
|
return c-'a'+10;
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user