mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/st.h, st.c (st_init_table, st_init_table_with_size):
constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
151d11b5b1
commit
ba563e4a41
8 changed files with 23 additions and 18 deletions
|
@ -10861,7 +10861,7 @@ code2_hash(OnigCodePoint* x)
|
|||
return (int )(x[0] + x[1]);
|
||||
}
|
||||
|
||||
static struct st_hash_type type_code2_hash = {
|
||||
static const struct st_hash_type type_code2_hash = {
|
||||
code2_cmp,
|
||||
code2_hash,
|
||||
};
|
||||
|
@ -10879,7 +10879,7 @@ code3_hash(OnigCodePoint* x)
|
|||
return (int )(x[0] + x[1] + x[2]);
|
||||
}
|
||||
|
||||
static struct st_hash_type type_code3_hash = {
|
||||
static const struct st_hash_type type_code3_hash = {
|
||||
code3_cmp,
|
||||
code3_hash,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue