mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
fd6b01c49d
commit
b97f754876
1 changed files with 1 additions and 1 deletions
2
string.c
2
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue