diff options
author | Yann Collet <cyan@fb.com> | 2018-04-26 22:49:32 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2018-04-26 22:49:32 (GMT) |
commit | 5c7d3812d90aeaf072d14f6b5d935711da6f14c7 (patch) | |
tree | ec95ac821c784c774832daf51dcd5869234e208f /lib | |
parent | 3792d00168edd060c58ceaecffb97d43dab27094 (diff) | |
download | lz4-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.c | 2 | ||||
-rw-r--r-- | lib/lz4hc.c | 2 |
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); } } |