0
0
mirror of https://github.com/madler/zlib.git synced 2026-01-18 17:11:27 +01:00

Avoid Visual C warning in gzread.c.

This commit is contained in:
Mark Adler
2025-12-16 19:17:00 -08:00
parent 2b250b88a4
commit fee7c52428

View File

@@ -412,7 +412,7 @@ int ZEXPORT gzread(gzFile file, voidp buf, unsigned len) {
}
/* read len or fewer bytes to buf */
len = gz_read(state, buf, len);
len = (unsigned)gz_read(state, buf, len);
/* check for an error */
if (len == 0) {