diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-24 21:44:14 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-24 21:44:14 +0000 |
commit | 2a20a5ee92fe2ffc893efaa7f759506421943514 (patch) | |
tree | 675acce69892dae79e61289a7086adca0c31a3ed /vm_core.h | |
parent | 2e46c2d15eac0848823a5e72de52594a923ea1a2 (diff) | |
download | ruby-2a20a5ee92fe2ffc893efaa7f759506421943514.tar.gz |
* 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
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -213,7 +213,7 @@ typedef struct rb_call_info_struct { int argc; union { int opt_pc; /* used by iseq */ - int index; /* used by ivar */ + unsigned int index; /* used by ivar */ enum method_missing_reason method_missing_reason; /* used by method_missing */ int inc_sp; /* used by cfunc */ } aux; @@ -250,9 +250,9 @@ struct rb_iseq_constant_body { ISEQ_TYPE_DEFINED_GUARD } type; /* instruction sequence type */ - int stack_max; /* for stack overflow check */ + unsigned int stack_max; /* for stack overflow check */ /* sizeof(vars) + 1 */ - int local_size; + unsigned int local_size; unsigned int iseq_size; const VALUE *iseq_encoded; /* encoded iseq (insn addr and operands) */ @@ -293,7 +293,7 @@ struct rb_iseq_constant_body { unsigned int ambiguous_param0 : 1; /* {|a|} */ } flags; - int size; + unsigned int size; int lead_num; int opt_num; @@ -345,9 +345,9 @@ struct rb_iseq_constant_body { rb_call_info_t *callinfo_entries; const VALUE mark_ary; /* Array: includes operands which should be GC marked */ - int local_table_size; - int is_size; - int callinfo_size; + unsigned int local_table_size; + unsigned int is_size; + unsigned int callinfo_size; unsigned int line_info_size; }; |