hermet pushed a commit to branch master.

http://git.enlightenment.org/apps/equate.git/commit/?id=b431cf2c42888d28bc99f625f43b431d47dc187d

commit b431cf2c42888d28bc99f625f43b431d47dc187d
Author: Hermet Park <her...@hermet.pe.kr>
Date:   Fri Jan 8 13:18:11 2016 +0900

    fix compilation warning.
    
    correct 64 bit data casting.
---
 src/main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main.c b/src/main.c
index 96b699a..64536fe 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);
           }
      }
 

-- 


Reply via email to