From a9c7629ece428e1de9119137a1b3f2e899b9d9e7 Mon Sep 17 00:00:00 2001 From: normal Date: Sat, 26 Jul 2014 07:30:26 +0000 Subject: rb_iseq_t: reduce to (280 bytes from 288 bytes) on 64-bit iseq_size and line_info_size may be 32-bit. 4GB instruction sequences should be big enough for anyone. Other existing line info counters are 32-bit, and nobody should need all that. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- iseq.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'iseq.c') diff --git a/iseq.c b/iseq.c index fdfd3b5f13..aadb28b8ee 100644 --- a/iseq.c +++ b/iseq.c @@ -1379,7 +1379,7 @@ rb_iseq_disasm(VALUE self) VALUE *iseq; VALUE str = rb_str_new(0, 0); VALUE child = rb_ary_new(); - unsigned long size; + unsigned int size; int i; long l; ID *tbl; @@ -2144,7 +2144,8 @@ int rb_iseq_line_trace_each(VALUE iseqval, int (*func)(int line, rb_event_flag_t *events_ptr, void *d), void *data) { int trace_num = 0; - size_t pos, insn; + unsigned int pos; + size_t insn; rb_iseq_t *iseq; int cont = 1; GetISeqPtr(iseqval, iseq); -- cgit v1.2.3