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
@@ -1098,7 +1098,7 @@ _shortestPath: /* cur, last_pos, best_mlen, best_off have to be set */
assert(anchor + llen <= iend);
ZSTD_updateStats(optStatePtr, llen, anchor, offCode, mlen);
ZSTD_storeSeq(seqStore, llen, anchor, offCode, mlen-MINMATCH);
ZSTD_storeSeq(seqStore, llen, anchor, iend, offCode, mlen-MINMATCH);
anchor += advance;
ip = anchor;
} }