diff --git a/src/physfs_archiver_zip.c b/src/physfs_archiver_zip.c index f18acec..93f795f 100644 --- a/src/physfs_archiver_zip.c +++ b/src/physfs_archiver_zip.c @@ -322,7 +322,7 @@ static PHYSFS_sint64 ZIP_read(PHYSFS_Io *_io, void *buf, PHYSFS_uint64 len) while (retval < maxread) { - PHYSFS_uint32 before = finfo->stream.total_out; + const PHYSFS_uint32 before = (PHYSFS_uint32) finfo->stream.total_out; int rc; if (finfo->stream.avail_in == 0)