mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02: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
|
@ -312,7 +312,7 @@ typedef struct {
|
|||
static int strend_cmp(st_strend_key*, st_strend_key*);
|
||||
static int strend_hash(st_strend_key*);
|
||||
|
||||
static struct st_hash_type type_strend_hash = {
|
||||
static const struct st_hash_type type_strend_hash = {
|
||||
strend_cmp,
|
||||
strend_hash,
|
||||
};
|
||||
|
@ -4736,7 +4736,7 @@ static int type_cclass_hash(type_cclass_key* key)
|
|||
return val + (val >> 5);
|
||||
}
|
||||
|
||||
static struct st_hash_type type_type_cclass_hash = {
|
||||
static const struct st_hash_type type_type_cclass_hash = {
|
||||
type_cclass_cmp,
|
||||
type_cclass_hash,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue