summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcrimsonwoods <[email protected]>2013-03-21 22:57:14 +0900
committercrimsonwoods <[email protected]>2013-03-21 22:57:14 +0900
commitc1f6a27660432771c033775ec144d06d361e704d (patch)
treeba0e12821eb368232e9fb415608927c3ccc629bc
parent0292940e557d91faa84b8570619226a75b8468d3 (diff)
downloadmruby-c1f6a27660432771c033775ec144d06d361e704d.tar.gz
mruby-c1f6a27660432771c033775ec144d06d361e704d.zip
fix the type of value that is returned by bit-shift expression.
-rw-r--r--src/hash.c2
1 files changed, 1 insertions, 1 deletions
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);