commit | ca86a0fa2ab2dc56141332bd07811e486656879f | [log] [tgz] |
---|---|---|
author | Dmitry-Me <wipedout@yandex.ru> | Mon May 25 11:29:14 2015 +0300 |
committer | Dmitry-Me <wipedout@yandex.ru> | Mon May 25 11:29:14 2015 +0300 |
tree | f51952ff9be2dc1fb6a2e8e148e36160e655b22a | |
parent | c879a4d48cbe9e18b75b924267d536d0fa1a18de [diff] [blame] |
Proper fix gcc -Wsign-compare
diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 2c07897..667170f 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp
@@ -1861,7 +1861,7 @@ return _errorID; } - if ( (size_t)filelength >= (size_t)-1 ) { + if ( (unsigned long)filelength >= (size_t)-1 ) { // Cannot handle files which won't fit in buffer together with null terminator SetError( XML_ERROR_FILE_READ_ERROR, 0, 0 ); return _errorID;