1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* include/ruby/st.h (st_hash_func): use st_index_t.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-09-08 13:10:04 +00:00
parent 034414741e
commit 31b7ae00c0
21 changed files with 92 additions and 79 deletions

View file

@ -2122,10 +2122,10 @@ code2_cmp(OnigCodePoint* x, OnigCodePoint* y)
return 1;
}
static int
static st_index_t
code2_hash(OnigCodePoint* x)
{
return (int )(x[0] + x[1]);
return (st_index_t )(x[0] + x[1]);
}
static const struct st_hash_type type_code2_hash = {
@ -2140,10 +2140,10 @@ code3_cmp(OnigCodePoint* x, OnigCodePoint* y)
return 1;
}
static int
static st_index_t
code3_hash(OnigCodePoint* x)
{
return (int )(x[0] + x[1] + x[2]);
return (st_index_t )(x[0] + x[1] + x[2]);
}
static const struct st_hash_type type_code3_hash = {