summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-01-27 21:52:21 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-01-27 21:52:21 +0400
commitec540fa25cf63ad27efe718680637957f7b9e154 (patch)
treef22e551eb2b44d0193b02c0b622cd04aaeafdf7e
parent449ee465f63e7a0e418342914e9ab1ecaf4d47b1 (diff)
downloadgcd-ec540fa25cf63ad27efe718680637957f7b9e154.tar.gz
Fixed stupid error
-rw-r--r--gcd.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcd.hs b/gcd.hs
index 078563d..fe07fc0 100644
--- a/gcd.hs
+++ b/gcd.hs
@@ -1,7 +1,7 @@
import System.Environment(getArgs)
gcd2 a 0 = a
-gcd2 a b = gcd2 b (rem b a)
+gcd2 a b = gcd2 b (a `rem` b)
gcdn n = foldl1 gcd2 n