Accept lower-case in fromhex()
This commit is contained in:
1 parent
78ba4c9a59
commit
893de45272
1 file changed
+3
@@ -68,6 +68,9 @@ static inline int fromhex (const char c)
|
||||
if (c>='A' && c<='F')
|
||||
return c-'A'+10;
|
||||
|
||||
if (c>='a' && c<='f')
|
||||
return c-'a'+10;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user