diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 0bee8bf..143d30a 100644 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -1566,7 +1566,7 @@ int XMLDocument::LoadFile( FILE* fp ) InitDocument(); fseek( fp, 0, SEEK_END ); - unsigned size = ftell( fp ); + size_t size = ftell( fp ); fseek( fp, 0, SEEK_SET ); if ( size == 0 ) {