Reapply #167
This commit is contained in:
parent
7c0ab30bdc
commit
72fa7ece48
|
@ -275,7 +275,7 @@ macro_rules! impl_integer_for_isize {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn lcm(&self, other: &Self) -> Self {
|
fn lcm(&self, other: &Self) -> Self {
|
||||||
// should not have to recalculate abs
|
// should not have to recalculate abs
|
||||||
((*self * *other) / self.gcd(other)).abs()
|
(*self * (*other / self.gcd(other))).abs()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Deprecated, use `is_multiple_of` instead.
|
/// Deprecated, use `is_multiple_of` instead.
|
||||||
|
|
Loading…
Reference in New Issue