Merge pull request #314 from Dmitry-Me/ensureEnumIsPrintedProperly

Ensure enum is printed properly
This commit is contained in:
Lee Thomason 2015-04-07 09:55:18 -07:00
commit 4a0392dd9d
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 );
}
}