forked from enlightenment/enlightenment
e_flowlayout: typecast return value to int
Summary: return value is small enough, so there is no risk in casting from unsigned int to signed int. CID: 1267211 Reviewers: devilhorns, raster, cedric, zmike Subscribers: seoz, sachin.dev Differential Revision: https://phab.enlightenment.org/D3179
This commit is contained in:
parent
984d664eef
commit
71f7720669
|
@ -233,7 +233,7 @@ e_flowlayout_pack_end(Evas_Object *obj, Evas_Object *child)
|
|||
sd->items = eina_list_append(sd->items, child);
|
||||
sd->changed = 1;
|
||||
if (sd->frozen <= 0) _e_flowlayout_smart_reconfigure(sd);
|
||||
return eina_list_count(sd->items) - 1;
|
||||
return (int)(eina_list_count(sd->items) - 1);
|
||||
}
|
||||
|
||||
E_API int
|
||||
|
@ -290,7 +290,7 @@ e_flowlayout_pack_count_get(Evas_Object *obj)
|
|||
if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERR(0);
|
||||
sd = evas_object_smart_data_get(obj);
|
||||
if (!sd) return 0;
|
||||
return eina_list_count(sd->items);
|
||||
return (int)eina_list_count(sd->items);
|
||||
}
|
||||
|
||||
E_API Evas_Object *
|
||||
|
|
Loading…
Reference in New Issue