summaryrefslogtreecommitdiffstats
path: root/lib/lz4.c
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2016-09-06 14:46:52 (GMT)
committerYann Collet <cyan@fb.com>2016-09-06 14:46:52 (GMT)
commit33993542af61ebaa87db3a0adbfe3661c0a5d313 (patch)
tree3ab3ea0efebb062fd630f4baf81563d6132fd166 /lib/lz4.c
parentc8a78dba1fc21f64dec72cf217c21fe8784c42bf (diff)
downloadlz4-33993542af61ebaa87db3a0adbfe3661c0a5d313.zip
lz4-33993542af61ebaa87db3a0adbfe3661c0a5d313.tar.gz
lz4-33993542af61ebaa87db3a0adbfe3661c0a5d313.tar.bz2
removed test artefacts
Diffstat (limited to 'lib/lz4.c')
-rw-r--r--lib/lz4.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index f485970..08128bb 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -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);