summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-08 02:01:07 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-08 02:01:07 +0000
commit72b6d62ce9546a5fb4b04b99bd10578297748171 (patch)
treece78052c8bc319dd4c0a15fb4bcd875a17fd7144
parent4b7ba83426147edfeea3f20919d8d0fbe608249f (diff)
downloadruby-72b6d62ce9546a5fb4b04b99bd10578297748171.tar.gz
ruby-72b6d62ce9546a5fb4b04b99bd10578297748171.tar.xz
ruby-72b6d62ce9546a5fb4b04b99bd10578297748171.zip
* lib/complex.rb: remove Math first before overwriting by CMath.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--lib/complex.rb1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b14a0e1ab..3fb77cf2b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Apr 8 11:00:14 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/complex.rb: remove Math first before overwriting by CMath.
+
Tue Apr 8 10:34:10 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* load.c (rb_require_safe): should check fname path after $SAFE is
diff --git a/lib/complex.rb b/lib/complex.rb
index c5fbb36a4..0e88dd5f4 100644
--- a/lib/complex.rb
+++ b/lib/complex.rb
@@ -1,3 +1,4 @@
require 'cmath'
+Object.instance_eval{remove_const :Math}
Math = CMath