fix: src\hash.c(40): warning C4244: '=': conversion from 'mrb_int' to 'khint_t', possible loss of data

This commit is contained in:
Tomasz Dąbrowski
2017-09-25 16:17:11 +02:00
committed by Tomasz Dabrowski
parent 3e1d60ae0b
commit 8cef3f946c
+1 -1
View File
@@ -37,7 +37,7 @@ mrb_hash_ht_hash_func(mrb_state *mrb, mrb_value key)
default:
hv = mrb_funcall(mrb, key, "hash", 0);
h = (khint_t)t ^ mrb_fixnum(hv);
h = (khint_t)t ^ (khint_t)mrb_fixnum(hv);
break;
}
return kh_int_hash_func(mrb, h);