Skip to content

Commit

Permalink
Update inflate arg
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeu committed Oct 28, 2024
1 parent 13e2e6c commit 315ed18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/inflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ InflateSkip(mat_t *mat, z_streamp z, int nBytes, size_t *bytesread)
}
z->avail_out = n;
z->next_out = uncomp_buf;
err = inflate(z, Z_FULL_FLUSH);
err = inflate(z, Z_NO_FLUSH);
if ( err == Z_STREAM_END ) {
return MATIO_E_NO_ERROR;
} else if ( err != Z_OK ) {
Expand Down Expand Up @@ -103,7 +103,7 @@ InflateSkip(mat_t *mat, z_streamp z, int nBytes, size_t *bytesread)
z->avail_in = (uInt)nbytes;
z->next_in = comp_buf;
}
err = inflate(z, Z_FULL_FLUSH);
err = inflate(z, Z_NO_FLUSH);
if ( err == Z_STREAM_END ) {
err = MATIO_E_NO_ERROR;
break;
Expand Down Expand Up @@ -362,7 +362,7 @@ InflateData(mat_t *mat, z_streamp z, void *buf, unsigned int nBytes)
}
z->avail_out = nBytes;
z->next_out = ZLIB_BYTE_PTR(buf);
err = inflate(z, Z_FULL_FLUSH);
err = inflate(z, Z_NO_FLUSH);
if ( err == Z_STREAM_END ) {
return MATIO_E_NO_ERROR;
} else if ( err != Z_OK ) {
Expand All @@ -387,7 +387,7 @@ InflateData(mat_t *mat, z_streamp z, void *buf, unsigned int nBytes)
bytesread += nbytes;
z->avail_in = (uInt)nbytes;
z->next_in = comp_buf;
err = inflate(z, Z_FULL_FLUSH);
err = inflate(z, Z_NO_FLUSH);
if ( err == Z_STREAM_END ) {
err = MATIO_E_NO_ERROR;
break;
Expand Down

0 comments on commit 315ed18

Please sign in to comment.