diff options
author | Yann Collet <cyan@fb.com> | 2016-09-06 14:46:52 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2016-09-06 14:46:52 (GMT) |
commit | 33993542af61ebaa87db3a0adbfe3661c0a5d313 (patch) | |
tree | 3ab3ea0efebb062fd630f4baf81563d6132fd166 /lib | |
parent | c8a78dba1fc21f64dec72cf217c21fe8784c42bf (diff) | |
download | lz4-33993542af61ebaa87db3a0adbfe3661c0a5d313.zip lz4-33993542af61ebaa87db3a0adbfe3661c0a5d313.tar.gz lz4-33993542af61ebaa87db3a0adbfe3661c0a5d313.tar.bz2 |
removed test artefacts
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4.c | 5 | ||||
-rw-r--r-- | lib/lz4frame.c | 2 |
2 files changed, 3 insertions, 4 deletions
@@ -1103,7 +1103,7 @@ FORCE_INLINE int LZ4_decompress_generic( int partialDecoding, /* full, partial */ int targetOutputSize, /* only used if partialDecoding==partial */ int dict, /* noDict, withPrefix64k, usingExtDict */ - const BYTE* const lowPrefix, /* == dest if dict == noDict */ + const BYTE* const lowPrefix, /* == dest when no prefix */ const BYTE* const dictStart, /* only if dict==usingExtDict */ const size_t dictSize /* note : = 0 if noDict */ ) @@ -1385,8 +1385,7 @@ FORCE_INLINE int LZ4_decompress_usingDict_generic(const char* source, char* dest { if (dictSize==0) return LZ4_decompress_generic(source, dest, compressedSize, maxOutputSize, safe, full, 0, noDict, (BYTE*)dest, NULL, 0); - if (dictStart+dictSize == dest) - { + if (dictStart+dictSize == dest) { if (dictSize >= (int)(64 KB - 1)) return LZ4_decompress_generic(source, dest, compressedSize, maxOutputSize, safe, full, 0, withPrefix64k, (BYTE*)dest-64 KB, NULL, 0); return LZ4_decompress_generic(source, dest, compressedSize, maxOutputSize, safe, full, 0, noDict, (BYTE*)dest-dictSize, NULL, 0); diff --git a/lib/lz4frame.c b/lib/lz4frame.c index 1dc2bca..4cf259f 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -1184,7 +1184,7 @@ size_t LZ4F_decompress(LZ4F_decompressionContext_t decompressionContext, } selectedIn = dctxPtr->tmpIn; dctxPtr->dStage = dstage_decodeCBlock; - break; + /* pass-through */ } case dstage_decodeCBlock: |