diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-17 02:57:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-17 02:57:53 +0000 |
commit | 25d670429c8ecf3e2d2cf4310982a331e8dc2133 (patch) | |
tree | 0efb1679e6d55482582b4b3b4c541306302cbe55 /compile.c | |
parent | 8d84693323d3eee5a34a12a21e4e686de8a3d801 (diff) | |
download | ruby-25d670429c8ecf3e2d2cf4310982a331e8dc2133.tar.gz |
compile.c: constify
* compile.c (iseq_set_local_table): constify ID table.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -344,7 +344,7 @@ static int iseq_setup(rb_iseq_t *iseq, LINK_ANCHOR *anchor); static int iseq_optimize(rb_iseq_t *iseq, LINK_ANCHOR *anchor); static int iseq_insns_unification(rb_iseq_t *iseq, LINK_ANCHOR *anchor); -static int iseq_set_local_table(rb_iseq_t *iseq, ID *tbl); +static int iseq_set_local_table(rb_iseq_t *iseq, const ID *tbl); static int iseq_set_exception_local_table(rb_iseq_t *iseq); static int iseq_set_arguments(rb_iseq_t *iseq, LINK_ANCHOR *anchor, NODE * node); @@ -1336,7 +1336,7 @@ iseq_set_arguments(rb_iseq_t *iseq, LINK_ANCHOR *optargs, NODE *node_args) } static int -iseq_set_local_table(rb_iseq_t *iseq, ID *tbl) +iseq_set_local_table(rb_iseq_t *iseq, const ID *tbl) { int size; |