diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp index 82d50780..dd0724c8 100644 --- a/desktop_version/src/FileSystemUtils.cpp +++ b/desktop_version/src/FileSystemUtils.cpp @@ -360,7 +360,7 @@ void FILESYSTEM_loadFileToMemory( { return; } - PHYSFS_uint32 length = PHYSFS_fileLength(handle); + PHYSFS_sint64 length = PHYSFS_fileLength(handle); if (len != NULL) { *len = length;