We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09e92c7 commit a417f37Copy full SHA for a417f37
libbz2-rs-sys/src/decompress.rs
@@ -1015,9 +1015,9 @@ pub(crate) fn decompress(
1015
let bytes_needed = bits_needed.div_ceil(8);
1016
1017
if strm.avail_in as usize >= bytes_needed {
1018
- for t in 0..nGroups {
+ for t in 0..usize::from(nGroups) {
1019
let mut curr = GET_BITS!(strm, s, 5);
1020
- for i in 0..alphaSize {
+ for i in 0..usize::from(alphaSize) {
1021
loop {
1022
if !(1..=20).contains(&curr) {
1023
error!(BZ_DATA_ERROR);
@@ -1031,7 +1031,7 @@ pub(crate) fn decompress(
1031
}
1032
1033
1034
- s.len[usize::from(t)][usize::from(i)] = curr as u8;
+ s.len[t][i] = curr as u8;
1035
1036
1037
0 commit comments