From 61ee86b5b831ad232f90302e24269abb9cc6db8f Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sat, 14 Jun 2014 17:04:30 +0100 Subject: quickfix --- lz4.c | 4 ++-- 1 file 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; } } -- cgit v0.12