diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-30 12:39:53 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-30 12:39:53 +0000 |
commit | 8248c26e6dfb2d80c03c65ca51bca62992e5c959 (patch) | |
tree | c9e50313b28ebed27525b91497ab9a1698f6639a /lib/mathn.rb | |
parent | d0e2d150b8bc9d18d2beff1752086237a627b509 (diff) |
Define Integer#/ instead of Bignum#/.
* numeric.c (rb_int_div): Define Integer#/.
* bignum.c (rb_big_div): Don't define Bignum#/.
* lib/mathn.rb (Integer#/): Replace Integer#/ instead of Bignum#/.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mathn.rb')
-rw-r--r-- | lib/mathn.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mathn.rb b/lib/mathn.rb index d07388bc26..9e33f45580 100644 --- a/lib/mathn.rb +++ b/lib/mathn.rb @@ -79,7 +79,7 @@ end # # (2**72) / ((2**70) * 3) # => 4/3 -class Bignum +class Integer remove_method :/ ## |