aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-02 04:54:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-02 04:54:57 +0000
commita81979ec5502187c6c7504afded5e6bc3f6eb6ed (patch)
tree069d820e9bdbad353c75bc90c425685b7e3c0456 /iseq.c
parent7ec46047002de6692d643f5d3d5c29fcd5b03e0a (diff)
downloadruby-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index 8a658d17f1..6774ba3253 100644
--- a/iseq.c
+++ b/iseq.c
@@ -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 {