Fix error typecasting from void * to int for 64bit machines 88/41488/1
authorWitold Goralski <w.goralski@samsung.com>
Tue, 16 Jun 2015 07:48:59 +0000 (09:48 +0200)
committerWitold Goralski <w.goralski@samsung.com>
Tue, 16 Jun 2015 07:51:28 +0000 (09:51 +0200)
Change-Id: I9e3f776ba7faae910174ece41ab8620657bffd7a
Signed-off-by: Witold Goralski <w.goralski@samsung.com>
src/vc_elm_rectangle.c

index 11c669f0ddbb93f6e4bd1b9c2413bf40d1562ab3..1c7a57c58abdcdf75946c4fb6e133af1a855c4d1 100644 (file)
@@ -34,9 +34,13 @@ void _R_set_from_efl(R *p, Evas_Object *obj)
        int h;
        int *tx;
        int *ty;
+       intptr_t ptx;
+       intptr_t pty;
        evas_object_geometry_get(obj, &x, &y, &w, &h);
-       tx = (int *)evas_object_data_get(obj, VC_ELM_FIXED_X);
-       ty = (int *)evas_object_data_get(obj, VC_ELM_FIXED_Y);
+       ptx = (intptr_t)evas_object_data_get(obj, VC_ELM_FIXED_X);
+       pty = (intptr_t)evas_object_data_get(obj, VC_ELM_FIXED_Y);
+       tx = *((int *)(&ptx));
+       ty = *((int *)(&pty));
        if (tx != 0 && ty != 0) {
                x = (int)tx;
                y = (int)ty;