diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7,7 +7,7 @@ unsigned long lcm(unsigned long a, unsigned long b) { if (a && b) - return (a * b) / gcd(a, b); + return (a / gcd(a, b)) * b; else if (b) return b; |