diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2018-01-22 21:25:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-22 21:25:49 (GMT) |
commit | 8258f4d9cba4c163f0c63a60a79d14d8aef90c4e (patch) | |
tree | 2cf7b77fb71dfada3cb0414e7d314b0e9526ac69 | |
parent | ad12efa4e80855eb6267f5d3a7c50669e0565919 (diff) | |
parent | 30e92f320cc355c91a9b1840fd14026566ba9477 (diff) | |
download | lz4-8258f4d9cba4c163f0c63a60a79d14d8aef90c4e.zip lz4-8258f4d9cba4c163f0c63a60a79d14d8aef90c4e.tar.gz lz4-8258f4d9cba4c163f0c63a60a79d14d8aef90c4e.tar.bz2 |
Merge pull request #455 from terrelln/hc-default
[lz4hc] level == 0 means default, not level 1
-rw-r--r-- | lib/lz4hc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c index f2c2566..cface81 100644 --- a/lib/lz4hc.c +++ b/lib/lz4hc.c @@ -728,7 +728,7 @@ void LZ4_resetStreamHC (LZ4_streamHC_t* LZ4_streamHCPtr, int compressionLevel) void LZ4_setCompressionLevel(LZ4_streamHC_t* LZ4_streamHCPtr, int compressionLevel) { - if (compressionLevel < 1) compressionLevel = 1; + if (compressionLevel < 1) compressionLevel = LZ4HC_CLEVEL_DEFAULT; if (compressionLevel > LZ4HC_CLEVEL_MAX) compressionLevel = LZ4HC_CLEVEL_MAX; LZ4_streamHCPtr->internal_donotuse.compressionLevel = compressionLevel; } |