From: MyungJoo Ham Date: Tue, 21 Feb 2017 04:54:31 +0000 (+0900) Subject: Improve Portability: Support 64bit Systems X-Git-Tag: accepted/tizen/unified/20170310.105006^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Finputdelegator.git;a=commitdiff_plain;h=54cba504078627916d9e614500398103883b357c Improve Portability: Support 64bit Systems You have added another code that does not support 64bit systems. PLEASE do not write such codes. Change-Id: If01a7328808c46edd222dd5bd391d7feabbb1154 Signed-off-by: MyungJoo Ham --- diff --git a/src/w-input-selector.cpp b/src/w-input-selector.cpp index d7b14b5..270adce 100755 --- a/src/w-input-selector.cpp +++ b/src/w-input-selector.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include "w-input-selector.h" #include "w-input-template.h" @@ -175,7 +176,7 @@ static void __ise_template_gl_sel(void *data, Evas_Object *obj, void *event_info if (item) { elm_genlist_item_selected_set(item, EINA_FALSE); - index = (unsigned int) elm_object_item_data_get(item); + index = (uintptr_t) elm_object_item_data_get(item); const std::vector template_list = input_template_get_list(); if (index < (int)template_list.size()) { @@ -188,7 +189,7 @@ static void __ise_template_gl_sel(void *data, Evas_Object *obj, void *event_info static char * __ise_template_gl_text_get(void *data, Evas_Object *obj, const char *part) { if(!strcmp(part, "elm.text")) { - unsigned int index = (unsigned int)data; + unsigned int index = (uintptr_t)data; const std::vector template_list = input_template_get_list(); if(index < template_list.size()) { @@ -769,7 +770,7 @@ unsigned int _update_template_items(void *user_data) for (i = 0; i < template_list.size(); i++) { elm_genlist_item_append(app_data->genlist, itc, - (void *)i, + (void *)(uintptr_t)i, NULL, ELM_GENLIST_ITEM_NONE, __ise_template_gl_sel,