From 22be6d06ab60ac22fbaa1cf29afa048a456d4319 Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 24 Jul 2015 21:44:14 +0000 Subject: * vm_core.h: size should be unsigned. * rb_call_info_t::index * rb_iseq_constant_body::stack_max * rb_iseq_constant_body::local_size * rb_iseq_constant_body::param::size * rb_iseq_constant_body::local_table_size * rb_iseq_constant_body::is_size * rb_iseq_constant_body::callinfo_size * iseq.h: same for iseq_catch_table::size. * compile.c: catch up these fix. * iseq.c: ditto. * proc.c: ditto. * vm.c: ditto. * vm_args.c: ditto. * vm_eval.c: ditto. * vm_insnhelper.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm.c') diff --git a/vm.c b/vm.c index 594f0ea49e..1095614851 100644 --- a/vm.c +++ b/vm.c @@ -629,7 +629,7 @@ rb_vm_env_prev_envval(const rb_env_t *env) static int collect_local_variables_in_iseq(const rb_iseq_t *iseq, const struct local_var_list *vars) { - int i; + unsigned int i; if (!iseq) return 0; for (i = 0; i < iseq->body->local_table_size; i++) { local_var_list_add(vars, iseq->body->local_table[i]); @@ -1477,7 +1477,7 @@ vm_exec(rb_thread_t *th) } } else { - int i; + unsigned int i; const struct iseq_catch_table_entry *entry; const struct iseq_catch_table *ct; unsigned long epc, cont_pc, cont_sp; -- cgit v1.2.3