mirror of
https://github.com/madler/zlib.git
synced 2026-01-18 17:11:27 +01:00
Avoid mixed signedness compare in gzwrite.c.
This commit is contained in:
@@ -380,7 +380,7 @@ local int gz_vacate(gz_statep state) {
|
||||
z_streamp strm;
|
||||
|
||||
strm = &(state->strm);
|
||||
if ((strm->next_in + strm->avail_in) - state->in <= state->size)
|
||||
if (strm->next_in + strm->avail_in <= state->in + state->size)
|
||||
return 0;
|
||||
(void)gz_comp(state, Z_NO_FLUSH);
|
||||
if (strm->avail_in == 0) {
|
||||
|
||||
Reference in New Issue
Block a user