[LZ4_compress_destSize] Allow 2 more bytes of match length
This commit is contained in:
parent
7654a5a6d2
commit
690009e2c2
@ -1016,7 +1016,7 @@ _next_match:
|
||||
(unlikely(op + (1 + LASTLITERALS) + (matchCode>>8) > olimit)) ) {
|
||||
if (outputDirective == fillOutput) {
|
||||
/* Match description too long : reduce it */
|
||||
U32 newMatchCode = 15 /* in token */ - 1 /* to avoid needing a zero byte */ + ((U32)(olimit - op) - 2 - 1 - LASTLITERALS) * 255;
|
||||
U32 newMatchCode = 15 /* in token */ - 1 /* to avoid needing a zero byte */ + ((U32)(olimit - op) - 1 - LASTLITERALS) * 255;
|
||||
ip -= matchCode - newMatchCode;
|
||||
matchCode = newMatchCode;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user