mirror of
https://github.com/0x5eal/rbxts-pako.git
synced 2025-04-11 22:31:00 +01:00
fix inflate: _tr_tally function argument calculation
This commit is contained in:
parent
f47bb620ad
commit
2fcb571a68
1 changed files with 1 additions and 2 deletions
|
@ -770,8 +770,7 @@ function deflate_slow(s, flush) {
|
||||||
|
|
||||||
/***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,
|
/***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,
|
||||||
s.prev_length - MIN_MATCH, bflush);***/
|
s.prev_length - MIN_MATCH, bflush);***/
|
||||||
bflush = trees._tr_tally(s, s.strstart - 1- s.match_start, s.prev_length - MIN_MATCH);
|
bflush = trees._tr_tally(s, s.strstart - 1- s.prev_match, s.prev_length - MIN_MATCH);
|
||||||
|
|
||||||
/* Insert in hash table all strings up to the end of the match.
|
/* Insert in hash table all strings up to the end of the match.
|
||||||
* strstart-1 and strstart are already inserted. If there is not
|
* strstart-1 and strstart are already inserted. If there is not
|
||||||
* enough lookahead, the last two strings are not inserted in
|
* enough lookahead, the last two strings are not inserted in
|
||||||
|
|
Loading…
Add table
Reference in a new issue