summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/proc.c b/proc.c
index a95cd2a5dc..1405c1952f 100644
--- a/proc.c
+++ b/proc.c
@@ -379,7 +379,7 @@ get_local_variable_ptr(VALUE envval, ID lid)
else {
return NULL;
}
- } while ((envval = env->prev_envval) != 0);
+ } while ((envval = rb_vm_env_prev_envval(env)) != Qfalse);
return NULL;
}
@@ -432,9 +432,12 @@ static VALUE
bind_local_variables(VALUE bindval)
{
const rb_binding_t *bind;
+ const rb_env_t *env;
GetBindingPtr(bindval, bind);
- return rb_vm_env_local_variables(bind->env);
+ GetEnvPtr(bind->env, env);
+
+ return rb_vm_env_local_variables(env);
}
/*