aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-01 10:51:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-01 10:51:09 +0000
commita75afd54baa7af2c43d4f514aa638944e4e7b8b9 (patch)
tree61393582e0c80d43f5499eee2e9ffdad4557f448 /string.c
parent31f9490ef227b5e5d7e3403a7647b1dc8d28eee3 (diff)
downloadruby-a75afd54baa7af2c43d4f514aa638944e4e7b8b9.tar.gz
* string.c (rb_sym_proc_call): constify
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/string.c b/string.c
index 5352a6aab1..d80f43d715 100644
--- a/string.c
+++ b/string.c
@@ -8916,7 +8916,7 @@ sym_to_sym(VALUE sym)
}
VALUE
-rb_sym_proc_call(VALUE args, VALUE sym, int argc, VALUE *argv, VALUE passed_proc)
+rb_sym_proc_call(VALUE args, VALUE sym, int argc, const VALUE *argv, VALUE passed_proc)
{
VALUE obj;
@@ -8942,7 +8942,8 @@ sym_to_proc(VALUE sym)
static VALUE sym_proc_cache = Qfalse;
enum {SYM_PROC_CACHE_SIZE = 67};
VALUE proc;
- long id, index;
+ long index;
+ ID id;
VALUE *aryp;
if (!sym_proc_cache) {