aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_3d_texture.c
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2014-04-25 14:34:55 +0200
committerCedric Bail <cedric.bail@free.fr>2014-04-25 14:36:20 +0200
commit6efce2289b8734de8cbfee2cdd78ebb1af2ba67c (patch)
tree5e42377a69d3c13fb902c5aef47b00fcae350a47 /src/lib/evas/canvas/evas_3d_texture.c
parentecore: improve and fix various issue in Ecore_Exe windows implementation. (diff)
downloadefl-6efce2289b8734de8cbfee2cdd78ebb1af2ba67c.tar.gz
evas: fix massive number of warning introduced by Evas_3d.
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/evas_3d_texture.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/evas/canvas/evas_3d_texture.c b/src/lib/evas/canvas/evas_3d_texture.c
index f36f2e43c2..b1a8fef63c 100644
--- a/src/lib/evas/canvas/evas_3d_texture.c
+++ b/src/lib/evas/canvas/evas_3d_texture.c
@@ -262,10 +262,10 @@ evas_3d_texture_material_add(Evas_3D_Texture *texture, Evas_3D_Material *materia
}
}
else
- count = (int)eina_hash_find(pd->materials, &material);
+ count = (int)(uintptr_t)eina_hash_find(pd->materials, &material);
/* Increase reference count or add new one if not exist. */
- eina_hash_set(pd->materials, &material, (const void *)(count + 1));
+ eina_hash_set(pd->materials, &material, (const void *)(uintptr_t)(count + 1));
}
void
@@ -279,12 +279,12 @@ evas_3d_texture_material_del(Evas_3D_Texture *texture, Evas_3D_Material *materia
return;
}
- count = (int)eina_hash_find(pd->materials, &material);
+ count = (int)(uintptr_t)eina_hash_find(pd->materials, &material);
if (count == 1)
eina_hash_del(pd->materials, &material, NULL);
else
- eina_hash_set(pd->materials, &material, (const void *)(count - 1));
+ eina_hash_set(pd->materials, &material, (const void *)(uintptr_t)(count - 1));
}
@@ -476,4 +476,4 @@ _eo_evas_3d_texture_filter_get(Eo *obj EINA_UNUSED, Evas_3D_Texture_Data *pd, Ev
e->engine.func->texture_filter_get(e->engine.data.output, pd->engine_data, min, mag);
}
-#include "canvas/evas_3d_texture.eo.c" \ No newline at end of file
+#include "canvas/evas_3d_texture.eo.c"