diff --git a/fixed_wide/src/wide.rs b/fixed_wide/src/wide.rs index bf4c96f..9d050ce 100644 --- a/fixed_wide/src/wide.rs +++ b/fixed_wide/src/wide.rs @@ -22,7 +22,7 @@ impl+std::ops::Shl,FracDst:Unsigned> From f impl PartialEq for Fixed{ fn eq(&self,other:&Self)->bool{ - self.bits==other.bits + self.bits.eq(&other.bits) } } impl Eq for Fixed{}