fix compilation warning.

correct 64 bit data casting.
This commit is contained in:
Hermet Park 2016-01-08 13:18:11 +09:00
parent 8de253bb6a
commit b431cf2c42
1 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ _button_cb(void *data, Evas_Object * o EINA_UNUSED,
double result;
char buf[BUFLEN];
val = (int) data;
val = (int)(uintptr_t)data;
switch (val)
{
case EQ_EXIT:
@ -174,7 +174,7 @@ _create_button(Evas_Object *table, const char *text, int op, int x, int y,
evas_object_size_hint_weight_set(button, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(button, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_object_text_set(button, text);
evas_object_smart_callback_add(button, "clicked", _button_cb, (void *)op);
evas_object_smart_callback_add(button, "clicked", _button_cb, (void *)(uintptr_t)op);
elm_table_pack(table, button, x, y, w, 1);
evas_object_show(button);
@ -252,7 +252,7 @@ _key_down_cb(void *data, int type, void *event)
{
if (!strcmp(_keymap[i].keyname, ev->key))
{
_button_cb((void*)_keymap[i].op, NULL, NULL);
_button_cb((void*)(uintptr_t)_keymap[i].op, NULL, NULL);
}
}