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_insnhelper.c | |
parent | 9375ff5b06704b2fbad3f740cecf10399786acfd (diff) | |
download | ruby-9e73d45e0f38fddc7a117c5bc2eab103573e5986.tar.gz |
* 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_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index c4aca3a4f7..a64529fbb2 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -2019,8 +2019,8 @@ vm_call_method(rb_thread_t *th, rb_control_frame_t *cfp, rb_call_info_t *ci) } no_refinement_dispatch: - if (ci->me->def->body.orig_me) { - ci->me = ci->me->def->body.orig_me; + if (ci->me->def->body.refined.orig_me) { + ci->me = ci->me->def->body.refined.orig_me; if (UNDEFINED_METHOD_ENTRY_P(ci->me)) { ci->me = 0; } |