From b57689a2e8e0557a8d616a3ac4a01b14ffee0aa3 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 20 Sep 2022 16:17:59 +0100 Subject: [PATCH] in-line ZSTD_minCLevel() call as a constant. Change-Id: Ie0877b4c3cdc3111d3a35f9ed622d8903675b96a Signed-off-by: Michael Meeks --- kit/Delta.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kit/Delta.hpp b/kit/Delta.hpp index fe5429e4f..e3925f9c1 100644 --- a/kit/Delta.hpp +++ b/kit/Delta.hpp @@ -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));