Fix 64bit build error (2) 58/127358/1 accepted/tizen/unified/20170428.032530 submit/tizen/20170427.052215
authorKiseok Chang <kiso.chang@samsung.com>
Thu, 27 Apr 2017 05:18:14 +0000 (14:18 +0900)
committerKiseok Chang <kiso.chang@samsung.com>
Thu, 27 Apr 2017 05:20:10 +0000 (14:20 +0900)
- concert int value to void ptr, after converting it long explcitely

Change-Id: If990f472b84d6ba5c896f28c4469e861f9f1afd4
Signed-off-by: Kiseok Chang <kiso.chang@samsung.com>
src/view/system/view_clock.c
src/view/system/view_clock_mode.c

index 7d5dc79..6b15da3 100755 (executable)
@@ -446,7 +446,7 @@ void _update(void *view_data, int update_type, void *data)
        dlog_print(DLOG_INFO, LOG_TAG, "[%s:%d] VIEW UPDATE %p, priv->view_mode_on_show=%d",
                        __FILE__, __LINE__, priv, priv->view_mode_on_show);
 
-       priv->view_mode_on_show = (int)data;
+       priv->view_mode_on_show = (int)(long)data;
        SETTING_TRACE_END;
 }
 
index a050bc7..d8ac10b 100755 (executable)
@@ -109,7 +109,7 @@ static void _popup_item_selected_cb(int id, void *data, Evas *e, Evas_Object *ob
                return;
 
        viewmgr_pop_view();
-       viewmgr_update_view(VIEW_CLOCK, CLOCK_DISPLAY_MODE_UPDATE, (void *)id);
+       viewmgr_update_view(VIEW_CLOCK, CLOCK_DISPLAY_MODE_UPDATE, (void *)(long)id);
        viewmgr_show_view(VIEW_CLOCK);
 }
 
@@ -118,7 +118,7 @@ static void _mouse_down_cb(int id, void *data, Evas *e, Evas_Object *obj, Evas_E
        dlog_print(DLOG_INFO, LOG_TAG, "[%s:%d] MOUSE", __FILE__, __LINE__);
 
        viewmgr_pop_view();
-       viewmgr_update_view(VIEW_CLOCK, CLOCK_DISPLAY_MODE_UPDATE, (void *)id);
+       viewmgr_update_view(VIEW_CLOCK, CLOCK_DISPLAY_MODE_UPDATE, (void *)(long)id);
        viewmgr_show_view(VIEW_CLOCK);
 }