aboutsummaryrefslogtreecommitdiffstats
path: root/vm_eval.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-03 22:27:51 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-03 22:27:51 +0000
commitffa44cfe416178217fc5b345dcc551d7c2313f34 (patch)
treec399c77a5b8318be4521dbf0033214fcbed0d601 /vm_eval.c
parent4056e6adde5b0623c602e5ddc5e34d5b5db11235 (diff)
downloadruby-ffa44cfe416178217fc5b345dcc551d7c2313f34.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_eval.c')
-rw-r--r--vm_eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_eval.c b/vm_eval.c
index cd8e75a657..5300f704ca 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -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;
}