Commit 8cef3f94 authored by Tomasz Dąbrowski's avatar Tomasz Dąbrowski Committed by Tomasz Dabrowski

fix: src\hash.c(40): warning C4244: '=': conversion from 'mrb_int' to...

fix: src\hash.c(40): warning C4244: '=': conversion from 'mrb_int' to 'khint_t', possible loss of data
parent 3e1d60ae
...@@ -37,7 +37,7 @@ mrb_hash_ht_hash_func(mrb_state *mrb, mrb_value key) ...@@ -37,7 +37,7 @@ mrb_hash_ht_hash_func(mrb_state *mrb, mrb_value key)
default: default:
hv = mrb_funcall(mrb, key, "hash", 0); hv = mrb_funcall(mrb, key, "hash", 0);
h = (khint_t)t ^ mrb_fixnum(hv); h = (khint_t)t ^ (khint_t)mrb_fixnum(hv);
break; break;
} }
return kh_int_hash_func(mrb, h); return kh_int_hash_func(mrb, h);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment