summaryrefslogtreecommitdiff
path: root/thirdparty/zstd/compress/zstd_ldm.c
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-07-20 20:47:07 +0200
committerRémi Verschelde <rverschelde@gmail.com>2019-07-20 20:47:07 +0200
commitb81fa47f3882ef7d91baa9fa1351ea504fb019ca (patch)
tree82b1e699d7f45b7a53fc0f2f7524b1b22d0a34a5 /thirdparty/zstd/compress/zstd_ldm.c
parent437939589234559febabb9a4c392145521a9c3a5 (diff)
zstd: Update to upstream version 1.4.1
Diffstat (limited to 'thirdparty/zstd/compress/zstd_ldm.c')
-rw-r--r--thirdparty/zstd/compress/zstd_ldm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/zstd/compress/zstd_ldm.c b/thirdparty/zstd/compress/zstd_ldm.c
index 784d20f3ab..3dcf86e6e8 100644
--- a/thirdparty/zstd/compress/zstd_ldm.c
+++ b/thirdparty/zstd/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.