summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2014-06-14 16:04:30 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2014-06-14 16:04:30 (GMT)
commit61ee86b5b831ad232f90302e24269abb9cc6db8f (patch)
treecf7bda4f39f9868c807e65799a33cf3d8a09be70
parent2f0a717a35abbc2117c446272c4c96b892e991fc (diff)
downloadlz4-61ee86b5b831ad232f90302e24269abb9cc6db8f.zip
lz4-61ee86b5b831ad232f90302e24269abb9cc6db8f.tar.gz
lz4-61ee86b5b831ad232f90302e24269abb9cc6db8f.tar.bz2
quickfix
-rw-r--r--lz4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lz4.c b/lz4.c
index 1977ef0..6f01263 100644
--- a/lz4.c
+++ b/lz4.c
@@ -755,10 +755,10 @@ int LZ4_compress_continue (void* LZ4_stream, const char* source, char* dest, int
const BYTE* sourceEnd = (const BYTE*) source + inputSize;
if ((sourceEnd > streamPtr->dictionary) && (sourceEnd < dictEnd))
{
- streamPtr->dictionary = sourceEnd;
streamPtr->dictSize = dictEnd - sourceEnd;
if (streamPtr->dictSize > 64 KB) streamPtr->dictSize = 64 KB;
if (streamPtr->dictSize < 4) streamPtr->dictSize = 0;
+ streamPtr->dictionary = dictEnd - streamPtr->dictSize;
}
}
@@ -794,10 +794,10 @@ int LZ4_compress_limitedOutput_continue (void* LZ4_stream, const char* source, c
const BYTE* sourceEnd = (const BYTE*) source + inputSize;
if ((sourceEnd > streamPtr->dictionary) && (sourceEnd < dictEnd))
{
- streamPtr->dictionary = sourceEnd;
streamPtr->dictSize = dictEnd - sourceEnd;
if (streamPtr->dictSize > 64 KB) streamPtr->dictSize = 64 KB;
if (streamPtr->dictSize < 4) streamPtr->dictSize = 0;
+ streamPtr->dictionary = dictEnd - streamPtr->dictSize;
}
}