summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-17 14:34:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-17 14:34:24 +0000
commitb97f754876f0c3b0fb206af28201a5cd2fea108c (patch)
treec9439201f63af0f8dfc231fae75586c0d5398322 /string.c
parentfd6b01c49db6025b471e2f1894ae6c75a6282c8b (diff)
string.c: constify
* string.c (tr_find): constify argument table. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 310140d99d..98dbbfb645 100644
--- a/string.c
+++ b/string.c
@@ -5710,7 +5710,7 @@ tr_setup_table(VALUE str, char stable[TR_TABLE_SIZE], int first,
static int
-tr_find(unsigned int c, char table[TR_TABLE_SIZE], VALUE del, VALUE nodel)
+tr_find(unsigned int c, const char table[TR_TABLE_SIZE], VALUE del, VALUE nodel)
{
if (c < 256) {
return table[c] != 0;