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:
2
gzread.c
2
gzread.c
@@ -412,7 +412,7 @@ int ZEXPORT gzread(gzFile file, voidp buf, unsigned len) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* read len or fewer bytes to buf */
|
/* read len or fewer bytes to buf */
|
||||||
len = gz_read(state, buf, len);
|
len = (unsigned)gz_read(state, buf, len);
|
||||||
|
|
||||||
/* check for an error */
|
/* check for an error */
|
||||||
if (len == 0) {
|
if (len == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user