aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
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 {