in-line ZSTD_minCLevel() call as a constant.

Change-Id: Ie0877b4c3cdc3111d3a35f9ed622d8903675b96a
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
This commit is contained in:
Michael Meeks 2022-09-20 16:17:59 +01:00 committed by Andras Timar
parent 203e953796
commit b57689a2e8

View file

@ -423,8 +423,8 @@ class DeltaGenerator {
// compress for speed, not size - and trust to deltas.
size_t compSize = ZSTD_compress(compressed.get(), maxCompressed,
output.data(), output.size(),
ZSTD_minCLevel());
output.data(), output.size(),
-(1<<17) /* ZSTD_minCLevel() */);
if (ZSTD_isError(compSize))
{
LOG_ERR("Failed to compress delta of size " << output.size() << " with " << ZSTD_getErrorName(compSize));