From 72fa7ece483da16b238e7a37ac41c766bd99b60b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Jan=20Niemier?= Date: Fri, 11 Mar 2016 10:24:10 +0100 Subject: [PATCH] Reapply #167 --- integer/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integer/src/lib.rs b/integer/src/lib.rs index eee4ba2..5fdaf10 100644 --- a/integer/src/lib.rs +++ b/integer/src/lib.rs @@ -275,7 +275,7 @@ macro_rules! impl_integer_for_isize { #[inline] fn lcm(&self, other: &Self) -> Self { // should not have to recalculate abs - ((*self * *other) / self.gcd(other)).abs() + (*self * (*other / self.gcd(other))).abs() } /// Deprecated, use `is_multiple_of` instead.