Skip to content

Commit

Permalink
Fix bug with RLEv1 decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefffrey committed Sep 29, 2024
1 parent 943d347 commit a35cc36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/encoding/rle_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ impl<N: NInt, R: Read, S: EncodingSign> RleReaderV1<N, R, S> {
}

fn decode_batch(&mut self) -> Result<()> {
// Decode header byte to determine sub-encoding.
// Runs start with a positive byte, and literals with a negative byte.
self.current_head = 0;
self.decoded_ints.clear();
match try_read_u8(&mut self.reader)?.map(|byte| byte as i8) {
// Literals
Some(byte) if byte < 0 => {
Expand Down

0 comments on commit a35cc36

Please sign in to comment.