mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-06-06 22:53:34 +00:00
Ensure enum is printed properly
This commit is contained in:
parent
a1a4a13825
commit
400f1199ea
@ -1956,8 +1956,9 @@ void XMLDocument::PrintError() const
|
|||||||
TIXML_SNPRINTF( buf2, LEN, "%s", _errorStr2 );
|
TIXML_SNPRINTF( buf2, LEN, "%s", _errorStr2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TIXMLASSERT( INT_MIN <= _errorID && _errorID <= INT_MAX );
|
||||||
printf( "XMLDocument error id=%d '%s' str1=%s str2=%s\n",
|
printf( "XMLDocument error id=%d '%s' str1=%s str2=%s\n",
|
||||||
_errorID, ErrorName(), buf1, buf2 );
|
static_cast<int>( _errorID ), ErrorName(), buf1, buf2 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user