diff options
| author | Conrad Meyer <cem@FreeBSD.org> | 2019-08-08 15:30:49 +0000 |
|---|---|---|
| committer | Conrad Meyer <cem@FreeBSD.org> | 2019-08-08 15:30:49 +0000 |
| commit | fa94c7381af469a06d8f9077162c2cc5dee581cb (patch) | |
| tree | 1f6152d1ad6531de48efbb231bb91e55ba0ac2e4 /lib/compress/zstd_ldm.c | |
| parent | 3f774a5e86430d45c78443d234a90ee54582564f (diff) | |
Diffstat (limited to 'lib/compress/zstd_ldm.c')
| -rw-r--r-- | lib/compress/zstd_ldm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress/zstd_ldm.c b/lib/compress/zstd_ldm.c index 784d20f3ab716..3dcf86e6e8a32 100644 --- a/lib/compress/zstd_ldm.c +++ b/lib/compress/zstd_ldm.c @@ -447,7 +447,7 @@ size_t ZSTD_ldm_generateSequences( if (ZSTD_window_needOverflowCorrection(ldmState->window, chunkEnd)) { U32 const ldmHSize = 1U << params->hashLog; U32 const correction = ZSTD_window_correctOverflow( - &ldmState->window, /* cycleLog */ 0, maxDist, src); + &ldmState->window, /* cycleLog */ 0, maxDist, chunkStart); ZSTD_ldm_reduceTable(ldmState->hashTable, ldmHSize, correction); } /* 2. We enforce the maximum offset allowed. |
