Skip to content

Commit b65d075

Browse files
Remove unintentional limit
1 parent bcd22fa commit b65d075

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/shrink.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,7 @@ static void lz4ultra_optimize_command_count(lsza_compressor *pCompressor, const
620620
}
621621
else {
622622
if ((i + nMatchLen) < nEndOffset && nMatchLen >= LCP_MAX && pMatch->offset == 1 &&
623-
pCompressor->match[(i + nMatchLen) << MATCHES_PER_OFFSET_SHIFT].offset == 1 &&
624-
(nMatchLen + pCompressor->match[(i + nMatchLen) << MATCHES_PER_OFFSET_SHIFT].length) <= 65535) {
623+
pCompressor->match[(i + nMatchLen) << MATCHES_PER_OFFSET_SHIFT].offset == 1) {
625624
/* Join */
626625

627626
pMatch->length += pCompressor->match[(i + nMatchLen) << MATCHES_PER_OFFSET_SHIFT].length;

0 commit comments

Comments
 (0)