diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2014-06-14 16:04:30 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2014-06-14 16:04:30 (GMT) |
commit | 61ee86b5b831ad232f90302e24269abb9cc6db8f (patch) | |
tree | cf7bda4f39f9868c807e65799a33cf3d8a09be70 /lz4.c | |
parent | 2f0a717a35abbc2117c446272c4c96b892e991fc (diff) | |
download | lz4-61ee86b5b831ad232f90302e24269abb9cc6db8f.zip lz4-61ee86b5b831ad232f90302e24269abb9cc6db8f.tar.gz lz4-61ee86b5b831ad232f90302e24269abb9cc6db8f.tar.bz2 |
quickfix
Diffstat (limited to 'lz4.c')
-rw-r--r-- | lz4.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } } |