diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-08 13:10:04 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-08 13:10:04 +0000 |
| commit | 244398acccc1068be3ec7518ee53ad159dafc88e (patch) | |
| tree | 87743fd1893484f1af704d20e3695810ea21a893 /enc/unicode.c | |
| parent | dad2844df90b2834171e95c0a17d90d0180e4929 (diff) | |
| download | ruby-244398acccc1068be3ec7518ee53ad159dafc88e.tar.gz ruby-244398acccc1068be3ec7518ee53ad159dafc88e.tar.xz ruby-244398acccc1068be3ec7518ee53ad159dafc88e.zip | |
* include/ruby/st.h (st_hash_func): use st_index_t.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode.c')
| -rw-r--r-- | enc/unicode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/enc/unicode.c b/enc/unicode.c index bf9984beb..65a8da3c0 100644 --- a/enc/unicode.c +++ b/enc/unicode.c @@ -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 = { |
