eo ptr ind: fix cast when eo_id is disabled
authorJérémy Zurcher <jeremy@asynk.ch>
Sun, 5 May 2013 13:16:36 +0000 (15:16 +0200)
committerJérémy Zurcher <jeremy@asynk.ch>
Sun, 5 May 2013 13:18:01 +0000 (15:18 +0200)
src/lib/eo/eo_ptr_indirection.h

index 86355b3..4a35208 100644 (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)