From a81979ec5502187c6c7504afded5e6bc3f6eb6ed Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 2 Dec 2014 04:54:57 +0000 Subject: [PATCH] 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 --- iseq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {