commit | 18468b8cc463f49808c27ab4d21634eb50a20ad6 | [log] [tgz] |
---|---|---|
author | Lee Thomason <leethomason@gmail.com> | Sat Jun 13 17:35:21 2020 -0700 |
committer | Lee Thomason <leethomason@gmail.com> | Sat Jun 13 17:35:21 2020 -0700 |
tree | a47d42450cfafc78319dec7b9afc60df7c19401e | |
parent | c9c9d8cdfa52647e0991237f37f32714648bc844 [diff] [blame] |
minor changes to hex parsing
diff --git a/tinyxml2.h b/tinyxml2.h index c577af4..3c702ec 100755 --- a/tinyxml2.h +++ b/tinyxml2.h
@@ -591,10 +591,8 @@ } 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 ) {