diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-03 22:27:51 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-03 22:27:51 +0000 |
commit | 9e73d45e0f38fddc7a117c5bc2eab103573e5986 (patch) | |
tree | c399c77a5b8318be4521dbf0033214fcbed0d601 /vm_eval.c | |
parent | 9375ff5b06704b2fbad3f740cecf10399786acfd (diff) |
* method.h: introduce rb_method_refined_t for refined method entry.
* class.c (move_refined_method): catch up this fix.
* gc.c (mark_method_entry): ditto.
* vm_eval.c (vm_call0_body): ditto.
* vm_insnhelper.c (vm_call_method): ditto.
* vm_method.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r-- | vm_eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -198,8 +198,8 @@ vm_call0_body(rb_thread_t* th, rb_call_info_t *ci, const VALUE *argv) case VM_METHOD_TYPE_REFINED: { const rb_method_type_t type = ci->me->def->type; - if (type == VM_METHOD_TYPE_REFINED && ci->me->def->body.orig_me) { - ci->me = ci->me->def->body.orig_me; + if (type == VM_METHOD_TYPE_REFINED && ci->me->def->body.refined.orig_me) { + ci->me = ci->me->def->body.refined.orig_me; goto again; } |