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

This commit is contained in:
Tomasz Dąbrowski
2017-09-25 16:20:07 +02:00
committed by Tomasz Dabrowski
parent 8cef3f946c
commit 7d98055862
+1 -1
View File
@@ -136,7 +136,7 @@ mrb_hash_new_capa(mrb_state *mrb, mrb_int capa)
h = (struct RHash*)mrb_obj_alloc(mrb, MRB_TT_HASH, mrb->hash_class);
/* khash needs 1/4 empty space so it is not resized immediately */
h->ht = kh_init_size(ht, mrb, capa*4/3);
h->ht = kh_init_size(ht, mrb, (khint_t)(capa*4/3));
h->iv = 0;
return mrb_obj_value(h);
}