Accept lower-case in fromhex()

This commit is contained in:
angt
2015-12-15 08:28:10 +01:00
parent 78ba4c9a59
commit 893de45272

View File

@@ -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;
} }