diff options
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 bf9984bebd..65a8da3c06 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 = { |