change ZSTD_storeSeq() interface to accept matchLength
instead of mlBase. This removes the need to do `- MINMATCH` at every call site. The new interface contract is checked with an `assert()`.
This commit is contained in:
1 parent
eebf24bd2a
commit
b77fcac61f
8 files changed
+41
-38
No files matched your search
@@ -759,7 +759,7 @@ static U32 generateSequences(U32* seed, frame_t* frame, seqStore_t* seqStore,
|
||||
}
|
||||
/* use libzstd sequence handling */
|
||||
ZSTD_storeSeq(seqStore, literalLen, literals, literals + literalLen,
|
||||
offsetCode, matchLen - MINMATCH);
|
||||
offsetCode, matchLen);
|
||||
|
||||
literalsSize -= literalLen;
|
||||
excessMatch -= (matchLen - MIN_SEQ_LEN);
|
||||
|
||||
Reference in new issue
Block a user