diff --git a/fixed_wide/src/fixed_wide_traits.rs b/fixed_wide/src/fixed_wide_traits.rs index 24459f5..d34419c 100644 --- a/fixed_wide/src/fixed_wide_traits.rs +++ b/fixed_wide/src/fixed_wide_traits.rs @@ -73,7 +73,7 @@ impl Fixed bits:BInt::::ONE.shl(((((CHUNKS as i32*64-Frac::I32-(self.bits.leading_zeros() as i32)+1)>>1)+Frac::I32) as u32).saturating_sub(1)), frac:PhantomData, }; - let mut result=pow2; + let mut result=Self::ZERO; //cheat to make the types match let wide_self=self.wide_mul(Fixed::::ONE);