From eed613f4b1fa65705fab0ce617ea370ac53b2dfa Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 23 Jul 2015 09:53:16 +0000 Subject: * vm_core.h: constify rb_iseq_constant_body::local_table and rb_iseq_param_keyword::table and rb_iseq_param_keyword::default_values. * compile.c: catch up this fix. * iseq.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index e470e16..f4b3c3e 100644 --- a/vm_core.h +++ b/vm_core.h @@ -322,8 +322,8 @@ struct rb_iseq_constant_body { int required_num; int bits_start; int rest_start; - ID *table; - VALUE *default_values; + const ID *table; + const VALUE *default_values; } *keyword; } param; @@ -332,7 +332,7 @@ struct rb_iseq_constant_body { /* insn info, must be freed */ struct iseq_line_info_entry *line_info_table; - ID *local_table; /* must free */ + const ID *local_table; /* must free */ /* catch table */ struct iseq_catch_table *catch_table; -- cgit v1.1