summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcd.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcd.clj b/gcd.clj
index 7cee3c3..5296997 100644
--- a/gcd.clj
+++ b/gcd.clj
@@ -12,7 +12,7 @@
(defn gcd2 [a b]
(if (zero? b)
a
- (gcd2 b (mod a b))))
+ (recur b (mod a b))))
(defn gcdn [aa] (reduce gcd2 aa))