diff --git a/src/bigint.rs b/src/bigint.rs index fa04992a..1227b4f9 100644 --- a/src/bigint.rs +++ b/src/bigint.rs @@ -2188,11 +2188,7 @@ impl Integer for BigInt { /// Calculates the Lowest Common Multiple (LCM) of the number and `other`. #[inline] fn lcm(&self, other: &BigInt) -> BigInt { - if self.is_zero() && other.is_zero() { - Self::zero() - } else { - BigInt::from_biguint(Plus, self.data.lcm(&other.data)) - } + BigInt::from_biguint(Plus, self.data.lcm(&other.data)) } /// Deprecated, use `is_multiple_of` instead.