Skip to content

Commit

Permalink
just make all requests at most 56 bits
Browse files Browse the repository at this point in the history
  • Loading branch information
KillingSpark committed Apr 19, 2024
1 parent fb042b8 commit 0037d69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/decoding/bit_reader_reverse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ impl<'s> BitReaderReversed<'s> {

#[cold]
fn get_bits_cold(&mut self, n: u8) -> u64 {
let n = u8::min(n, 56);
let signed_n = n as isize;

if self.bits_remaining() <= 0 {
Expand Down

0 comments on commit 0037d69

Please sign in to comment.