Merge pull request #1039 from crimsonwoods/fix_the_type_of_opcode
[mruby.git] / src / hash.c
index 74474df..6976530 100644 (file)
@@ -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);