summaryrefslogtreecommitdiff
path: root/lib/mathn.rb
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-27 02:55:16 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-27 02:55:16 +0000
commit319f97adb9b88f4ff378618fea4d1968faedebeb (patch)
tree53d0c8dad357b9dac6635bbbe61bca6593b029a9 /lib/mathn.rb
parentaaa27526211c6a551bb3e7c11a04ed65910b2905 (diff)
merges r25067 from trunk into ruby_1_9_1 and added a test for it.
-- * lib/mathn.rb (Bignum#**): Fixed bignum**fixnum that was broken when requiring lib/mathn [ruby-core:25740] -- * test/test_mathn.rb (TestMathn): new test case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mathn.rb')
-rw-r--r--lib/mathn.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mathn.rb b/lib/mathn.rb
index 0241f578e9..780ecd6e7c 100644
--- a/lib/mathn.rb
+++ b/lib/mathn.rb
@@ -25,7 +25,7 @@ class Fixnum
remove_method :/
alias / quo
- alias power! ** unless defined?(0.power!)
+ alias power! ** unless method_defined? :power!
def ** (other)
if self < 0 && other.round != other
@@ -41,7 +41,7 @@ class Bignum
remove_method :/
alias / quo
- alias power! ** unless defined?(0.power!)
+ alias power! ** unless method_defined? :power!
def ** (other)
if self < 0 && other.round != other