From ba0ac946e9d1a3a94930e4538b34412d2af50466 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 4 Jul 2009 23:12:04 +0000 Subject: * vm_method.c (Init_eval_method): registers notimplement_body as a mark-object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_method.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm_method.c') diff --git a/vm_method.c b/vm_method.c index f32ba388ac..3dff244cce 100644 --- a/vm_method.c +++ b/vm_method.c @@ -435,7 +435,7 @@ rb_method_boundp(VALUE klass, ID id, int ex) return Qfalse; } if (rb_notimplement_body_p(method->nd_body)) - return Qfalse; + return Qfalse; return Qtrue; } return Qfalse; @@ -1175,7 +1175,7 @@ Init_eval_method(void) undefined = rb_intern("method_undefined"); singleton_undefined = rb_intern("singleton_method_undefined"); - rb_global_variable((VALUE*)¬implement_body); notimplement_body = NEW_CFUNC(rb_f_notimplement, -1); + rb_gc_register_mark_object((VALUE)notimplement_body); } -- cgit v1.2.3