From f214cbf97404a1291375759e4f4dcb72abaf2719 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Fri, 26 Sep 2014 16:27:19 +0900 Subject: [PATCH] refactor dict.c stritc type casts --- dict.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dict.c b/dict.c index 0746fbd9..13200c08 100644 --- a/dict.c +++ b/dict.c @@ -35,7 +35,7 @@ xh_value_hash(const void *key, void *data) break; } - return hash + pic_vtype(val); + return hash + (int)pic_vtype(val); } static int @@ -213,7 +213,7 @@ pic_dict_dictionary_size(pic_state *pic) pic_get_args(pic, "d", &dict); - return pic_int_value(pic_dict_size(pic, dict)); + return pic_int_value((int)pic_dict_size(pic, dict)); } static pic_value