Skip to content

Commit

Permalink
Merge 6ffc9eb into 1345a72
Browse files Browse the repository at this point in the history
  • Loading branch information
wcampbell0x2a authored Sep 7, 2024
2 parents 1345a72 + 6ffc9eb commit 00814fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ impl<'a, R: Read + Seek> Reader<'a, R> {
}

let bits_read = amt * 8;
self.last_bits_read_amt += bits_read;
self.last_bits_read_amt = bits_read;
self.bits_read += bits_read;

#[cfg(feature = "logging")]
Expand Down Expand Up @@ -403,7 +403,7 @@ impl<'a, R: Read + Seek> Reader<'a, R> {
return Err(DekuError::Io(e.kind()));
}

self.last_bits_read_amt += N * 8;
self.last_bits_read_amt = N * 8;
self.bits_read += N * 8;

#[cfg(feature = "logging")]
Expand Down

0 comments on commit 00814fa

Please sign in to comment.