fix clippy warnings
[nihav.git] / nihav-qt / src / codecs / qdm2qmf.rs
index 214f7af697ae737012e2643f9c34e30c2d9f3750..d8cafa24910221c03e10c26da740e41403c3a83d 100644 (file)
@@ -359,7 +359,7 @@ unimplemented!();
                             }
                             q = q.wrapping_sub(self.grid_3_quant[ch][band - 4]);
                         }
-                        self.tone_idx[ch][band][i] = q as i8;
+                        self.tone_idx[ch][band][i] = q;
                         if q > 0 || (self.is_intra && q == 0) {
                             self.tone_scale[ch][band][i] = TONE_SCALES[0][(q & 0x3F) as usize];
                         } else {