commit | 4a0392dd9dfc44e718a780b3891f6ef84683d67c | [log] [tgz] |
---|---|---|
author | Lee Thomason <leethomason@gmail.com> | Tue Apr 07 09:55:18 2015 -0700 |
committer | Lee Thomason <leethomason@gmail.com> | Tue Apr 07 09:55:18 2015 -0700 |
tree | 1f65532c5711081087df435a487eebcf16df9c05 | |
parent | 0aa957a35288d76a6e48050b777156c58c927076 [diff] | |
parent | 400f1199ea983ac68dd2de910c5c6b0af83842c6 [diff] |
Merge pull request #314 from Dmitry-Me/ensureEnumIsPrintedProperly Ensure enum is printed properly
diff --git a/tinyxml2.cpp b/tinyxml2.cpp index e8dd32b..0619bdf 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp
@@ -1956,8 +1956,9 @@ 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 ); } }