From 8c574990a908233196080e70c12605f5f3d8eadd Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Mon, 30 Apr 2018 16:08:16 -0700 Subject: lz4hc changed variable to reduce confusion dictLowLimit => dictStart --- lib/lz4hc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lz4hc.c b/lib/lz4hc.c index f2dc21b..d42bb5a 100644 --- a/lib/lz4hc.c +++ b/lib/lz4hc.c @@ -264,7 +264,7 @@ LZ4HC_InsertAndGetWiderMatch ( } else { /* matchIndex < dictLimit */ const BYTE* const matchPtr = dictBase + matchIndex; if (LZ4_read32(matchPtr) == pattern) { - const BYTE* const dictLowLimit = dictBase + hc4->lowLimit; + const BYTE* const dictStart = dictBase + hc4->lowLimit; int mlt; int back = 0; const BYTE* vLimit = ip + (dictLimit - matchIndex); @@ -272,7 +272,7 @@ LZ4HC_InsertAndGetWiderMatch ( mlt = LZ4_count(ip+MINMATCH, matchPtr+MINMATCH, vLimit) + MINMATCH; if ((ip+mlt == vLimit) && (vLimit < iHighLimit)) mlt += LZ4_count(ip+mlt, lowPrefixPtr, iHighLimit); - back = lookBackLength ? LZ4HC_countBack(ip, matchPtr, iLowLimit, dictLowLimit) : 0; + back = lookBackLength ? LZ4HC_countBack(ip, matchPtr, iLowLimit, dictStart) : 0; mlt -= back; if (mlt > longest) { longest = mlt; -- cgit v0.12