diff options
author | Yann Collet <cyan@fb.com> | 2018-04-30 23:08:16 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2018-04-30 23:08:16 (GMT) |
commit | 8c574990a908233196080e70c12605f5f3d8eadd (patch) | |
tree | e8ccb9cb5c8c3a0f56110bf9460eee10e1408039 | |
parent | de7b274d996ee16f22cfdb94f2564788939e0af0 (diff) | |
download | lz4-8c574990a908233196080e70c12605f5f3d8eadd.zip lz4-8c574990a908233196080e70c12605f5f3d8eadd.tar.gz lz4-8c574990a908233196080e70c12605f5f3d8eadd.tar.bz2 |
lz4hc changed variable
to reduce confusion
dictLowLimit => dictStart
-rw-r--r-- | lib/lz4hc.c | 4 |
1 files 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; |