diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-24 20:58:09 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-24 20:58:09 +0000 |
commit | efa31acaad8663602357fb193db8dd4320fa66d5 (patch) | |
tree | 67030b6863551105e4d5098f71f2e075b6368dfe /vm_core.h | |
parent | 18ef8181aecfb63be61099483390e8b0321e0c75 (diff) | |
download | ruby-efa31acaad8663602357fb193db8dd4320fa66d5.tar.gz |
* 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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |