This commit is contained in:
Quaternions 2024-08-23 16:53:54 -07:00
parent 3ccc19f768
commit b836bc2a11

View File

@ -22,7 +22,7 @@ impl<Int:From<i128>+std::ops::Shl<u32,Output=Int>,FracDst:Unsigned> From<i128> f
impl<Int:PartialEq,Frac> PartialEq for Fixed<Int,Frac>{
fn eq(&self,other:&Self)->bool{
self.bits==other.bits
self.bits.eq(&other.bits)
}
}
impl<Int:Eq,Frac> Eq for Fixed<Int,Frac>{}