minor changes to hex parsing

This commit is contained in:
Lee Thomason
2020-06-13 17:35:21 -07:00
parent c9c9d8cdfa
commit 18468b8cc4
3 changed files with 11 additions and 13 deletions

View File

@@ -591,10 +591,8 @@ public:
}
inline static bool IsPrefixHex( const char* p) {
while (p && *p != '\0' && !isdigit(*p)) {
++p;
}
return *p == '0' && ( *(p + 1) == 'x' || *(p + 1) == 'X');
p = SkipWhiteSpace(p, 0);
return p && *p == '0' && ( *(p + 1) == 'x' || *(p + 1) == 'X');
}
inline static bool StringEqual( const char* p, const char* q, int nChar=INT_MAX ) {