Ensure enum is printed properly

This commit is contained in:
Dmitry-Me 2015-04-07 11:51:21 +03:00
parent a1a4a13825
commit 400f1199ea
1 changed files with 2 additions and 1 deletions

View File

@ -1956,8 +1956,9 @@ void XMLDocument::PrintError() const
TIXML_SNPRINTF( buf2, LEN, "%s", _errorStr2 );
}
TIXMLASSERT( INT_MIN <= _errorID && _errorID <= INT_MAX );
printf( "XMLDocument error id=%d '%s' str1=%s str2=%s\n",
_errorID, ErrorName(), buf1, buf2 );
static_cast<int>( _errorID ), ErrorName(), buf1, buf2 );
}
}