efl_ui_tab_pager : Fix type mismatch for calloc
Summary: Fix type mismatch. The return value of function 'calloc' is cast to type 'App_Data *', which doesn't match the sizeof expression 'sizeof (ad)' passed as its 2nd argument 'sizeof (ad)'. The size of the result is 8 bytes, value of the sizeof expression is 4. Test Plan: N/A Reviewers: bowonryu, SanghyeonLee Reviewed By: bowonryu, SanghyeonLee Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7067
This commit is contained in:
parent
b1650ca471
commit
2948bacdb6
|
@ -165,7 +165,7 @@ test_ui_tab_pager(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev
|
|||
|
||||
efl_ui_pager_current_page_set(tp, 0);
|
||||
|
||||
ad = calloc(1, sizeof(ad));
|
||||
ad = (App_Data*)calloc(1, sizeof(App_Data));
|
||||
ad->navi = navi;
|
||||
ad->tab_pager = tp;
|
||||
|
||||
|
|
Loading…
Reference in New Issue