summaryrefslogtreecommitdiff
path: root/src/third_party/zstandard/zstd/lib/compress/zstd_compress_superblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/zstandard/zstd/lib/compress/zstd_compress_superblock.c')
-rw-r--r--src/third_party/zstandard/zstd/lib/compress/zstd_compress_superblock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/third_party/zstandard/zstd/lib/compress/zstd_compress_superblock.c b/src/third_party/zstandard/zstd/lib/compress/zstd_compress_superblock.c
index 67e1abb11e6..10e33785778 100644
--- a/src/third_party/zstandard/zstd/lib/compress/zstd_compress_superblock.c
+++ b/src/third_party/zstandard/zstd/lib/compress/zstd_compress_superblock.c
@@ -539,7 +539,7 @@ static size_t ZSTD_compressSubBlock_multi(const seqStore_t* seqStorePtr,
repcodes_t rep;
ZSTD_memcpy(&rep, prevCBlock->rep, sizeof(rep));
for (seq = sstart; seq < sp; ++seq) {
- rep = ZSTD_updateRep(rep.rep, seq->offset - 1, ZSTD_getSequenceLength(seqStorePtr, seq).litLength == 0);
+ ZSTD_updateRep(rep.rep, seq->offBase - 1, ZSTD_getSequenceLength(seqStorePtr, seq).litLength == 0);
}
ZSTD_memcpy(nextCBlock->rep, &rep, sizeof(rep));
}