diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-23 09:53:16 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-23 09:53:16 +0000 |
commit | eed613f4b1fa65705fab0ce617ea370ac53b2dfa (patch) | |
tree | 711756a19978139a195dee817cd5a44c9fd5ec70 /vm_core.h | |
parent | 18f6978625fe8adc4fe6e414e73e97d52b566592 (diff) | |
download | ruby-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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |