mirror of https://github.com/AxioDL/tinyxml2.git
sync
This commit is contained in:
commit
e638a925b2
|
@ -120,7 +120,7 @@ char* StrPair::ParseText( char* p, const char* endTag, int strFlags )
|
||||||
|
|
||||||
char* start = p; // fixme: hides a member
|
char* start = p; // fixme: hides a member
|
||||||
char endChar = *endTag;
|
char endChar = *endTag;
|
||||||
int length = strlen( endTag );
|
size_t length = strlen( endTag );
|
||||||
|
|
||||||
// Inner loop of text parsing.
|
// Inner loop of text parsing.
|
||||||
while ( *p ) {
|
while ( *p ) {
|
||||||
|
@ -316,7 +316,7 @@ const char* XMLUtil::GetCharacterRef( const char* p, char* value, int* length )
|
||||||
if ( *(p+1) == '#' && *(p+2) )
|
if ( *(p+1) == '#' && *(p+2) )
|
||||||
{
|
{
|
||||||
unsigned long ucs = 0;
|
unsigned long ucs = 0;
|
||||||
int delta = 0;
|
ptrdiff_t delta = 0;
|
||||||
unsigned mult = 1;
|
unsigned mult = 1;
|
||||||
|
|
||||||
if ( *(p+2) == 'x' )
|
if ( *(p+2) == 'x' )
|
||||||
|
@ -329,7 +329,7 @@ const char* XMLUtil::GetCharacterRef( const char* p, char* value, int* length )
|
||||||
|
|
||||||
if ( !q || !*q ) return 0;
|
if ( !q || !*q ) return 0;
|
||||||
|
|
||||||
delta = (q-p);
|
delta = q-p;
|
||||||
--q;
|
--q;
|
||||||
|
|
||||||
while ( *q != 'x' )
|
while ( *q != 'x' )
|
||||||
|
|
Loading…
Reference in New Issue