diff options
author | Yann Collet <cyan@fb.com> | 2016-12-22 10:41:05 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2016-12-22 10:41:05 (GMT) |
commit | 52cac9a97342641315c76cfb861206d6acd631a8 (patch) | |
tree | 3909505cec589c883e6e207f5cd83ec953d03eee /lib/lz4hc.c | |
parent | 70526a11e033a640fb9e7ae80fe75b465d484bf0 (diff) | |
download | lz4-52cac9a97342641315c76cfb861206d6acd631a8.zip lz4-52cac9a97342641315c76cfb861206d6acd631a8.tar.gz lz4-52cac9a97342641315c76cfb861206d6acd631a8.tar.bz2 |
updated a few macros names
Diffstat (limited to 'lib/lz4hc.c')
-rw-r--r-- | lib/lz4hc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c index 44a1340..ae245b5 100644 --- a/lib/lz4hc.c +++ b/lib/lz4hc.c @@ -497,7 +497,7 @@ static int LZ4HC_compress_generic ( limitedOutput_directive limit ) { - if (compressionLevel < 1) compressionLevel = LZ4HC_DEFAULT_CLEVEL; + if (compressionLevel < 1) compressionLevel = LZ4HC_CLEVEL_DEFAULT; if (compressionLevel > 9) { switch (compressionLevel) { case 10: return LZ4HC_compress_hashChain(ctx, source, dest, inputSize, maxOutputSize, 1 << (16-1), limit); @@ -574,7 +574,7 @@ int LZ4_loadDictHC (LZ4_streamHC_t* LZ4_streamHCPtr, const char* dictionary, int static void LZ4HC_setExternalDict(LZ4HC_CCtx_internal* ctxPtr, const BYTE* newBlock) { - if (ctxPtr->compressionLevel >= LZ4HC_MIN_CLEVEL_OPT) + if (ctxPtr->compressionLevel >= LZ4HC_CLEVEL_OPT_MIN) LZ4HC_updateBinTree(ctxPtr, ctxPtr->end - MFLIMIT, ctxPtr->end - LASTLITERALS); else if (ctxPtr->end >= ctxPtr->base + 4) LZ4HC_Insert (ctxPtr, ctxPtr->end-3); /* Referencing remaining dictionary content */ |