Fix a bug in the compress cctx method
This commit is contained in:
parent
3d7377b874
commit
5261a288d1
@ -175,8 +175,8 @@ static result_t compress_cctx_compress(
|
|||||||
state->compressed.capacity,
|
state->compressed.capacity,
|
||||||
input.data,
|
input.data,
|
||||||
input.size,
|
input.size,
|
||||||
state->dictionary.data,
|
config->use_dictionary ? state->dictionary.data : NULL,
|
||||||
state->dictionary.size,
|
config->use_dictionary ? state->dictionary.size : 0,
|
||||||
params);
|
params);
|
||||||
else if (config->use_dictionary)
|
else if (config->use_dictionary)
|
||||||
state->compressed.size = ZSTD_compress_usingDict(
|
state->compressed.size = ZSTD_compress_usingDict(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user