From c1f6a27660432771c033775ec144d06d361e704d Mon Sep 17 00:00:00 2001 From: crimsonwoods Date: Thu, 21 Mar 2013 22:57:14 +0900 Subject: fix the type of value that is returned by bit-shift expression. --- src/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hash.c') diff --git a/src/hash.c b/src/hash.c index dc00c0db5..262c713b6 100644 --- a/src/hash.c +++ b/src/hash.c @@ -15,7 +15,7 @@ static inline khint_t mrb_hash_ht_hash_func(mrb_state *mrb, mrb_value key) { - khint_t h = mrb_type(key) << 24; + khint_t h = (khint_t)mrb_type(key) << 24; mrb_value h2; h2 = mrb_funcall(mrb, key, "hash", 0, 0); -- cgit v1.2.3