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:
parent
203e953796
commit
b57689a2e8
1 changed files with 2 additions and 2 deletions
|
@ -423,8 +423,8 @@ class DeltaGenerator {
|
||||||
|
|
||||||
// compress for speed, not size - and trust to deltas.
|
// compress for speed, not size - and trust to deltas.
|
||||||
size_t compSize = ZSTD_compress(compressed.get(), maxCompressed,
|
size_t compSize = ZSTD_compress(compressed.get(), maxCompressed,
|
||||||
output.data(), output.size(),
|
output.data(), output.size(),
|
||||||
ZSTD_minCLevel());
|
-(1<<17) /* ZSTD_minCLevel() */);
|
||||||
if (ZSTD_isError(compSize))
|
if (ZSTD_isError(compSize))
|
||||||
{
|
{
|
||||||
LOG_ERR("Failed to compress delta of size " << output.size() << " with " << ZSTD_getErrorName(compSize));
|
LOG_ERR("Failed to compress delta of size " << output.size() << " with " << ZSTD_getErrorName(compSize));
|
||||||
|
|
Loading…
Reference in a new issue