summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index af5bcb2..4d41575 100644
--- a/vm.c
+++ b/vm.c
@@ -523,7 +523,7 @@ collect_local_variables_in_iseq(rb_iseq_t *iseq, const VALUE vars)
for (i = 0; i < iseq->local_table_size; i++) {
ID lid = iseq->local_table[i];
if (rb_is_local_id(lid)) {
- rb_ary_push(vars, ID2SYM(lid));
+ rb_hash_aset(vars, ID2SYM(lid), Qtrue);
}
}
return 1;