Skip to content

Commit a81979e

Browse files
committed
iseq.c: use lvar index
* iseq.c (iseq_data_to_ary): use local variable indexes for hidden variable instead of meaningless ID values. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 7ec4604 commit a81979e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iseq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,7 @@ iseq_data_to_ary(rb_iseq_t *iseq)
17211721
rb_ary_push(locals, ID2SYM(lid));
17221722
}
17231723
else { /* hidden variable from id_internal() */
1724-
rb_ary_push(locals, ULONG2NUM(lid));
1724+
rb_ary_push(locals, ULONG2NUM(iseq->local_table_size-i+1));
17251725
}
17261726
}
17271727
else {

0 commit comments

Comments
 (0)