Skip to content

Commit d1ed823

Browse files
committed
Use the outer environment's variable
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent e2dcf9d commit d1ed823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/zstdruby/streaming_compress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ no_compress(struct streaming_compress_t* sc, ZSTD_EndDirective endOp)
111111
do {
112112
ZSTD_outBuffer output = { (void*)output_data, sc->buf_size, 0 };
113113

114-
size_t const ret = zstd_stream_compress(sc->ctx, &output, &input, endOp, false);
114+
ret = zstd_stream_compress(sc->ctx, &output, &input, endOp, false);
115115
if (ZSTD_isError(ret)) {
116116
rb_raise(rb_eRuntimeError, "flush error error code: %s", ZSTD_getErrorName(ret));
117117
}

0 commit comments

Comments
 (0)