mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fix: src\hash.c(40): warning C4244: '=': conversion from 'mrb_int' to 'khint_t', possible loss of data
This commit is contained in:
committed by
Tomasz Dabrowski
parent
3e1d60ae0b
commit
8cef3f946c
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user