From 30d57c6fcafd15a249dc735f2e15e5d251c4adec Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 7 Aug 2019 13:46:04 +0900 Subject: [PATCH] Fix build error in 64bit architecture Change-Id: I2784feafd8dd5e2ae95a0dcfbed29c063d36eebe Signed-off-by: Jihoon Kim --- src/option.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/option.cpp b/src/option.cpp index ca55246..a4c6345 100644 --- a/src/option.cpp +++ b/src/option.cpp @@ -1400,7 +1400,7 @@ static void set_popup_message(Evas_Object *obj, const char *content_fmt, int con static void popup_lang_changed(void *data, Evas_Object *obj, void *event_info) { const char *content_fmt = (const char *)evas_object_data_get(obj, "fmt"); - int content_data = (int)evas_object_data_get(obj, "data"); + int content_data = (int)reinterpret_cast(evas_object_data_get(obj, "data")); set_popup_message(obj, content_fmt, content_data); } @@ -1417,7 +1417,7 @@ static void language_view_popup_show(Evas_Object *obj, SCLOptionWindowType type, elm_object_style_set(option_elements[type].lang_popup, "circle"); #endif evas_object_data_set(option_elements[type].lang_popup, "fmt", content_fmt); - evas_object_data_set(option_elements[type].lang_popup, "data", (void *)content_data); + evas_object_data_set(option_elements[type].lang_popup, "data", (void *)(unsigned long int)content_data); set_popup_message(option_elements[type].lang_popup, content_fmt, content_data); evas_object_smart_callback_add(option_elements[type].lang_popup, "language,changed", popup_lang_changed, NULL); -- 2.7.4