Pass iend into ZSTD_storeSeq() to allow ZSTD_wildcopy()

This commit is contained in:
Nick Terrell
2019-09-20 00:56:20 -07:00
parent cdad7fa512
commit ddab2a94e8
7 changed files with 36 additions and 31 deletions
+1 -1
View File
@@ -583,7 +583,7 @@ size_t ZSTD_ldm_blockCompress(rawSeqStore_t* rawSeqStore,
rep[i] = rep[i-1];
rep[0] = sequence.offset;
/* Store the sequence */
ZSTD_storeSeq(seqStore, newLitLength, ip - newLitLength,
ZSTD_storeSeq(seqStore, newLitLength, ip - newLitLength, iend,
sequence.offset + ZSTD_REP_MOVE,
sequence.matchLength - MINMATCH);
ip += sequence.matchLength;