index
:
gcd
master
The Greatest Common Divisor in many languages and tools
Igor Pashev
summary
refs
log
tree
commit
diff
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
gcd.fs
3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcd.fs b/gcd.fs
index 1baeda0..c66f291 100644
--- a/
gcd.fs
+++ b/
gcd.fs
@@ -30,7 +30,8 @@
r> 1 + >r
repeat
2drop
- r> gcdn . cr
+ r>
+ dup 0 <> if gcdn . cr else drop endif
;
main bye