Add test compatibility with last literals in sequences
This commit is contained in:
1 parent
1d221ecc03
commit
dc448563e9
3 files changed
+28
-21
No files matched your search
@@ -2506,11 +2506,11 @@ static void ZSTD_copyBlockSequences(ZSTD_CCtx* zc)
|
||||
|
||||
/* Insert last literals (if any exist) in the block as a sequence with ml == off == 0 */
|
||||
lastLLSize = seqStoreLiteralsSize - literalsRead;
|
||||
if (lastLLSize) {
|
||||
if (lastLLSize > 0) {
|
||||
outSeqs[i].litLength = lastLLSize;
|
||||
outSeqs[i].matchLength = outSeqs[i].offset = outSeqs[i].rep = 0;
|
||||
seqStoreSeqSize++;
|
||||
}
|
||||
|
||||
zc->seqCollector.seqIndex += seqStoreSeqSize;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user