Kicking the whoopsies out

This commit is contained in:
Eric MacDonald
2021-09-08 22:41:49 -04:00
parent ca5f2d281a
commit c04da6fe0a

View File

@@ -351,8 +351,8 @@ class WTVLzpf {
* @returns {undefined} * @returns {undefined}
*/ */
AddBits(bits, bit_length) { AddBits(bits, bit_length) {
this.current_bits |= code >>> (this.current_bit_length & 0x1F); this.current_bits |= bits >>> (this.current_bit_length & 0x1F);
this.current_bit_length += code_length; this.current_bit_length += bit_length;
while (this.current_bit_length > 7) { while (this.current_bit_length > 7) {
this.AddByte((this.current_bits >>> 0x18) & 0xFF); this.AddByte((this.current_bits >>> 0x18) & 0xFF);