From 25d670429c8ecf3e2d2cf4310982a331e8dc2133 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 17 Dec 2014 02:57:53 +0000 Subject: 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 --- compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 393590e00d..d607f507f8 100644 --- a/compile.c +++ b/compile.c @@ -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; -- cgit v1.2.3