summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2018-04-26 22:49:32 (GMT)
committerYann Collet <cyan@fb.com>2018-04-26 22:49:32 (GMT)
commit5c7d3812d90aeaf072d14f6b5d935711da6f14c7 (patch)
treeec95ac821c784c774832daf51dcd5869234e208f /lib
parent3792d00168edd060c58ceaecffb97d43dab27094 (diff)
downloadlz4-5c7d3812d90aeaf072d14f6b5d935711da6f14c7.zip
lz4-5c7d3812d90aeaf072d14f6b5d935711da6f14c7.tar.gz
lz4-5c7d3812d90aeaf072d14f6b5d935711da6f14c7.tar.bz2
fasterDecSpeed can be triggered from cli with --favor-decSpeed
Diffstat (limited to 'lib')
-rw-r--r--lib/lz4frame.c2
-rw-r--r--lib/lz4hc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c
index 06a0f7b..9d88644 100644
--- a/lib/lz4frame.c
+++ b/lib/lz4frame.c
@@ -613,7 +613,7 @@ size_t LZ4F_compressBegin_usingCDict(LZ4F_cctx* cctxPtr,
LZ4F_applyCDict(cctxPtr->lz4CtxPtr, cdict, cctxPtr->prefs.compressionLevel);
}
if (preferencesPtr->compressionLevel >= LZ4HC_CLEVEL_MIN) {
- LZ4_favorDecompressionSpeed(cctxPtr->lz4CtxPtr, preferencesPtr->favorDecSpeed);
+ LZ4_favorDecompressionSpeed(cctxPtr->lz4CtxPtr, (int)preferencesPtr->favorDecSpeed);
}
/* Magic Number */
diff --git a/lib/lz4hc.c b/lib/lz4hc.c
index b90d60b..39ab5fb 100644
--- a/lib/lz4hc.c
+++ b/lib/lz4hc.c
@@ -718,7 +718,7 @@ LZ4_FORCE_INLINE int LZ4HC_compress_generic_internal (
cParam.nbSearches, cParam.targetLength, limit,
cLevel == LZ4HC_CLEVEL_MAX, /* ultra mode */
dict,
- favorDecompressionSpeed);
+ ctx->favorDecSpeed);
}
}