aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-23 09:53:16 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-23 09:53:16 +0000
commiteed613f4b1fa65705fab0ce617ea370ac53b2dfa (patch)
tree711756a19978139a195dee817cd5a44c9fd5ec70 /vm_core.h
parent18f6978625fe8adc4fe6e414e73e97d52b566592 (diff)
downloadruby-eed613f4b1fa65705fab0ce617ea370ac53b2dfa.tar.gz
* 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
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_core.h b/vm_core.h
index e470e164db..f4b3c3e295 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;