refactor dict.c stritc type casts
This commit is contained in:
parent
68a900ee94
commit
f214cbf974
4
dict.c
4
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
|
||||
|
|
Loading…
Reference in New Issue