Merge pull request #339 from Dmitry-Me/properFixGccSignCompare

Proper fix gcc -Wsign-compare
This commit is contained in:
Lee Thomason 2015-05-25 10:40:45 -07:00
commit 735ce51124
1 changed files with 1 additions and 1 deletions

View File

@ -1861,7 +1861,7 @@ XMLError XMLDocument::LoadFile( FILE* fp )
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;