summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-24 20:58:09 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-24 20:58:09 (GMT)
commitefa31acaad8663602357fb193db8dd4320fa66d5 (patch)
tree67030b6863551105e4d5098f71f2e075b6368dfe /vm_core.h
parent18ef8181aecfb63be61099483390e8b0321e0c75 (diff)
* vm_core.h: constify rb_iseq_constant_body::param::opt_table and
rb_iseq_constant_body::param::keyword. * compile.c: catch up this fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_core.h b/vm_core.h
index a315f51..3345607 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -302,7 +302,7 @@ struct rb_iseq_constant_body {
int post_num;
int block_start;
- VALUE *opt_table; /* (opt_num + 1) entries. */
+ const VALUE *opt_table; /* (opt_num + 1) entries. */
/* opt_num and opt_table:
*
* def foo o1=e1, o2=e2, ..., oN=eN
@@ -317,7 +317,7 @@ struct rb_iseq_constant_body {
* opt_table = [A1, A2, ..., AN, AL]
*/
- struct rb_iseq_param_keyword {
+ const struct rb_iseq_param_keyword {
int num;
int required_num;
int bits_start;