diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-02 04:54:57 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-02 04:54:57 +0000 |
commit | a81979ec5502187c6c7504afded5e6bc3f6eb6ed (patch) | |
tree | 069d820e9bdbad353c75bc90c425685b7e3c0456 /iseq.c | |
parent | 7ec46047002de6692d643f5d3d5c29fcd5b03e0a (diff) | |
download | ruby-a81979ec5502187c6c7504afded5e6bc3f6eb6ed.tar.gz |
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
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1721,7 +1721,7 @@ iseq_data_to_ary(rb_iseq_t *iseq) rb_ary_push(locals, ID2SYM(lid)); } else { /* hidden variable from id_internal() */ - rb_ary_push(locals, ULONG2NUM(lid)); + rb_ary_push(locals, ULONG2NUM(iseq->local_table_size-i+1)); } } else { |