From e75621f98d188c2354ab55d2757665b449cca4d3 Mon Sep 17 00:00:00 2001 From: inikep Date: Tue, 9 Feb 2016 21:12:23 +0100 Subject: [PATCH] dumpsEnd --- lib/zstd_compress.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/zstd_compress.c b/lib/zstd_compress.c index d5682811..ac53662a 100644 --- a/lib/zstd_compress.c +++ b/lib/zstd_compress.c @@ -240,7 +240,8 @@ static size_t ZSTD_resetCCtx_advanced (ZSTD_CCtx* zc, zc->seqStore.litLengthStart = zc->seqStore.litStart + blockSize; zc->seqStore.matchLengthStart = zc->seqStore.litLengthStart + (blockSize>>2); zc->seqStore.dumpsStart = zc->seqStore.matchLengthStart + (blockSize>>2); - zc->seqStore.litFreq = (U32*) (zc->seqStore.dumpsStart + (blockSize>>2)); + BYTE* dumpsEnd= zc->seqStore.dumpsStart + (blockSize>>2); + zc->seqStore.litFreq = (U32*)(dumpsEnd); zc->seqStore.litLengthFreq = zc->seqStore.litFreq + (1<seqStore.matchLengthFreq = zc->seqStore.litLengthFreq + (1<seqStore.offCodeFreq = zc->seqStore.matchLengthFreq + (1<