sanghyeonlee pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=2948bacdb6ad3587b8997e1ad2b4638007979ff9
commit 2948bacdb6ad3587b8997e1ad2b4638007979ff9 Author: JunsuChoi <[email protected]> Date: Wed Sep 19 16:40:51 2018 +0900 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 --- src/bin/elementary/test_ui_tab_pager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/elementary/test_ui_tab_pager.c b/src/bin/elementary/test_ui_tab_pager.c index 1ed8dba8df..50fa6655bd 100644 --- a/src/bin/elementary/test_ui_tab_pager.c +++ b/src/bin/elementary/test_ui_tab_pager.c @@ -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; --
