aboutsummaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-27 01:22:01 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-27 01:22:01 +0000
commit81fc906d9bf5892b815de3f9b13a3664a578f170 (patch)
tree40fee8a826739702468e31fee63f81f415383dbb /vm.c
parent3f9702c42014381ce2368dcd0b2fb61112c5b5a0 (diff)
downloadruby-81fc906d9bf5892b815de3f9b13a3664a578f170.tar.gz
Some functions accept `ec` instead of `th`.
* vm_insnhelper.c: The following functions accept `ec` instead of `th`. * lep_svar * lep_svar_write * lep_svar_get * lep_svar_set * vm_getspecial git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm.c b/vm.c
index a75d94f8cc..03bf61ff60 100644
--- a/vm.c
+++ b/vm.c
@@ -1205,14 +1205,14 @@ static VALUE
vm_cfp_svar_get(rb_thread_t *th, rb_control_frame_t *cfp, VALUE key)
{
cfp = vm_normal_frame(th, cfp);
- return lep_svar_get(th, cfp ? VM_CF_LEP(cfp) : 0, key);
+ return lep_svar_get(th->ec, cfp ? VM_CF_LEP(cfp) : 0, key);
}
static void
vm_cfp_svar_set(rb_thread_t *th, rb_control_frame_t *cfp, VALUE key, const VALUE val)
{
cfp = vm_normal_frame(th, cfp);
- lep_svar_set(th, cfp ? VM_CF_LEP(cfp) : 0, key, val);
+ lep_svar_set(th->ec, cfp ? VM_CF_LEP(cfp) : 0, key, val);
}
static VALUE