summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-24 08:44:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-24 08:44:47 +0000
commitcb723edfc89b57032f6b412479ccb12c3dbf3702 (patch)
treee20390d40ba5629dbde0c32831d34af0048564be /complex.c
parent1db825a0477295ec6c8f8deba8334a58fc152abc (diff)
* complex.c (Init_Complex), rational.c (Init_Rational): undefines
default #allocate methods which call the allocater. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/complex.c b/complex.c
index dba87d4984..31dc0baade 100644
--- a/complex.c
+++ b/complex.c
@@ -1371,6 +1371,7 @@ Init_Complex(void)
rb_cComplex = rb_define_class(COMPLEX_NAME, rb_cNumeric);
rb_define_alloc_func(rb_cComplex, nucomp_s_alloc);
+ rb_undef_method(CLASS_OF(rb_cComplex), "allocate");
#if 0
rb_define_private_method(CLASS_OF(rb_cComplex), "new!", nucomp_s_new_bang, -1);