From 1953f10b189dc6fe9faee35bc6282be34a5a4b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 5 May 2013 15:16:36 +0200 Subject: [PATCH] eo ptr ind: fix cast when eo_id is disabled --- src/lib/eo/eo_ptr_indirection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/eo/eo_ptr_indirection.h b/src/lib/eo/eo_ptr_indirection.h index 86355b3fb7..4a352089ef 100644 --- a/src/lib/eo/eo_ptr_indirection.h +++ b/src/lib/eo/eo_ptr_indirection.h @@ -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)