Skip to content

Commit

Permalink
Fix unreachable encoding for bit width decoder util
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefffrey committed May 23, 2024
1 parent 0617ecb commit 4931852
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/reader/decode/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ pub fn rle_v2_decode_bit_width(encoded: u8) -> usize {
debug_assert!(encoded < 32, "encoded bit width cannot exceed 5 bits");
match encoded {
0..=23 => encoded as usize + 1,
24 => 26,
25 => 28,
26 => 30,
27 => 32,
28 => 40,
29 => 48,
Expand Down

0 comments on commit 4931852

Please sign in to comment.