aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-11 13:37:15 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-11 13:37:15 +0000
commiteabfb049f44bf498597c0319d23c794f4a90248c (patch)
tree538136eef518832981bdb1297b8194e45d9f9bf8 /eval.c
parent7790f37efdd8dd42a0a43c3206f6afdd43f8e86a (diff)
downloadruby-eabfb049f44bf498597c0319d23c794f4a90248c.tar.gz
* eval.c (frame_called_id): it should use vm_ifunc type.
* eval.c (frame_func_id): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/eval.c b/eval.c
index 20c69db1b6..6e1afdfda1 100644
--- a/eval.c
+++ b/eval.c
@@ -946,8 +946,8 @@ frame_func_id(rb_control_frame_t *cfp)
}
while (iseq) {
if (RUBY_VM_IFUNC_P(iseq)) {
- NODE *ifunc = (NODE *)iseq;
- if (ifunc->nd_aid) return ifunc->nd_aid;
+ const struct vm_ifunc *ifunc = (struct vm_ifunc *)iseq;
+ if (ifunc->id) return ifunc->id;
return idIFUNC;
}
me_local = method_entry_of_iseq(cfp, iseq);
@@ -976,8 +976,8 @@ frame_called_id(rb_control_frame_t *cfp)
}
while (iseq) {
if (RUBY_VM_IFUNC_P(iseq)) {
- NODE *ifunc = (NODE *)iseq;
- if (ifunc->nd_aid) return ifunc->nd_aid;
+ const struct vm_ifunc *ifunc = (struct vm_ifunc *)iseq;
+ if (ifunc->id) return ifunc->id;
return idIFUNC;
}
me_local = method_entry_of_iseq(cfp, iseq);