diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rational.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rational.rb b/lib/rational.rb index 45bd141c8d..5ed283cda0 100644 --- a/lib/rational.rb +++ b/lib/rational.rb @@ -434,7 +434,7 @@ class Integer # # The result is positive, no matter the sign of the arguments. # - def gcd(n) + def gcd(other) min = self.abs max = other.abs while min > 0 |