StringUtil: Fix typo
This commit is contained in:
parent
1d83e72887
commit
b10f043350
|
@ -210,8 +210,8 @@ std::string EncodeHex(const u8* data, int length);
|
||||||
template<typename T>
|
template<typename T>
|
||||||
ALWAYS_INLINE static bool IsHexDigit(T ch)
|
ALWAYS_INLINE static bool IsHexDigit(T ch)
|
||||||
{
|
{
|
||||||
return ((ch >= static_cast<T>('a') && ch <= static_cast<T>('a')) ||
|
return ((ch >= static_cast<T>('a') && ch <= static_cast<T>('f')) ||
|
||||||
(ch >= static_cast<T>('A') && ch <= static_cast<T>('Z')) ||
|
(ch >= static_cast<T>('A') && ch <= static_cast<T>('F')) ||
|
||||||
(ch >= static_cast<T>('0') && ch <= static_cast<T>('9')));
|
(ch >= static_cast<T>('0') && ch <= static_cast<T>('9')));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue