eo ptr ind: fix cast when eo_id is disabled

This commit is contained in:
Jérémy Zurcher 2013-05-05 15:16:36 +02:00
parent 94b6dff74c
commit 1953f10b18
1 changed files with 2 additions and 2 deletions

View File

@ -41,14 +41,14 @@ void _eo_free_ids_tables();
#define EO_OBJ_POINTER_RETURN_VAL(obj_id, obj, ret) \
_Eo *obj; \
do { \
obj = _eo_obj_pointer_get(obj_id); \
obj = _eo_obj_pointer_get((Eo_Id)obj_id); \
EO_MAGIC_RETURN_VAL(obj, EO_EINA_MAGIC, ret); \
} while (0)
#define EO_OBJ_POINTER_RETURN(obj_id, obj) \
_Eo *obj; \
do { \
obj = _eo_obj_pointer_get(obj_id); \
obj = _eo_obj_pointer_get((Eo_Id)obj_id); \
EO_MAGIC_RETURN(obj, EO_EINA_MAGIC); \
} while (0)