diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-04 23:12:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-04 23:12:04 +0000 |
commit | ba0ac946e9d1a3a94930e4538b34412d2af50466 (patch) | |
tree | 674332ad19a35bfef1fd461b572562907d169a7c /vm_method.c | |
parent | 918fefb7f71487770b538336fca0dca8d442d32e (diff) | |
download | ruby-ba0ac946e9d1a3a94930e4538b34412d2af50466.tar.gz |
* 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
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |