mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
liblzma: Use lzma_memcmplen() in the BT3 match finder.
I had missed this when writing the commit
5db75054e9
.
Thanks to Jun I Jin.
This commit is contained in:
parent
41dc9ea06e
commit
71e1437ab5
1 changed files with 2 additions and 3 deletions
|
@ -632,9 +632,8 @@ lzma_mf_bt3_find(lzma_mf *mf, lzma_match *matches)
|
||||||
uint32_t len_best = 2;
|
uint32_t len_best = 2;
|
||||||
|
|
||||||
if (delta2 < mf->cyclic_size && *(cur - delta2) == *cur) {
|
if (delta2 < mf->cyclic_size && *(cur - delta2) == *cur) {
|
||||||
for ( ; len_best != len_limit; ++len_best)
|
len_best = lzma_memcmplen(
|
||||||
if (*(cur + len_best - delta2) != cur[len_best])
|
cur, cur - delta2, len_best, len_limit);
|
||||||
break;
|
|
||||||
|
|
||||||
matches[0].len = len_best;
|
matches[0].len = len_best;
|
||||||
matches[0].dist = delta2 - 1;
|
matches[0].dist = delta2 - 1;
|
||||||
|
|
Loading…
Reference in a new issue