ldmSeqStore->posInSequence += currSeq.litLength;
nbBytes -= currSeq.litLength;
}
-
+
if (nbBytes < currSeq.matchLength) {
ldmSeqStore->posInSequence += nbBytes;
return;
assert(ldmSeqStore->posInSequence <= currSeq.litLength + currSeq.matchLength);
currBlockEndPos = currPosInBlock + blockBytesRemaining;
literalsBytesRemaining = (ldmSeqStore->posInSequence < currSeq.litLength) ?
- currSeq.litLength - ldmSeqStore->posInSequence :
+ currSeq.litLength - (U32)ldmSeqStore->posInSequence :
0;
matchBytesRemaining = (literalsBytesRemaining == 0) ?
- currSeq.matchLength - (ldmSeqStore->posInSequence - currSeq.litLength) :
+ currSeq.matchLength - ((U32)ldmSeqStore->posInSequence - currSeq.litLength) :
currSeq.matchLength;
/* If there are more literal bytes than bytes remaining in block, no ldm is possible */