From b656371142a5bc18917b723ffdf07627b2ed0b72 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 29 Aug 2024 17:03:25 -0700 Subject: [PATCH] pass zero test --- fixed_wide/src/fixed_wide_traits.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);