mirror of
https://github.com/facebook/zstd.git
synced 2025-12-09 00:03:18 -05:00
commit
9f42fa0a04
@ -223,7 +223,7 @@ local z_size_t gz_write(gz_statep state, voidpc buf, z_size_t len) {
|
|||||||
z_size_t n = (unsigned)-1;
|
z_size_t n = (unsigned)-1;
|
||||||
if (n > len)
|
if (n > len)
|
||||||
n = len;
|
n = len;
|
||||||
state.state->strm.avail_in = (z_uInt)n;
|
state.state->strm.avail_in = (uInt)n;
|
||||||
state.state->x.pos += n;
|
state.state->x.pos += n;
|
||||||
if (gz_comp(state, Z_NO_FLUSH) == -1)
|
if (gz_comp(state, Z_NO_FLUSH) == -1)
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user