tasn pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=748b90d295f1d2dd9c6b02ed607e3cfa0f8b7a5d
commit 748b90d295f1d2dd9c6b02ed607e3cfa0f8b7a5d Author: Tom Hacohen <t...@stosb.com> Date: Mon Oct 12 16:27:55 2015 +0100 Eo: use correct mask when checking if an id is a class --- src/lib/eo/eo.c | 3 +-- src/lib/eo/eo_ptr_indirection.x | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 7d9847f..6d5ea30 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -153,8 +153,7 @@ _eo_is_a_class(const Eo *eo_id) if (!eo_id) return EINA_FALSE; oid = ((Eo_Header *) eo_id)->id; #endif - return ((((oid >> REF_TAG_SHIFT) & 0x1) == 0x0) && - (oid & MASK_CLASS_TAG)); + return (!(oid & MASK_OBJ_TAG) && (oid & MASK_CLASS_TAG)); } static inline _Eo_Class * diff --git a/src/lib/eo/eo_ptr_indirection.x b/src/lib/eo/eo_ptr_indirection.x index b92f29b..2faae75 100644 --- a/src/lib/eo/eo_ptr_indirection.x +++ b/src/lib/eo/eo_ptr_indirection.x @@ -419,7 +419,7 @@ _eo_id_allocate(const _Eo_Object *obj) #else Eo_Id ret = 0x1; (void) obj; - return ret << REF_TAG_SHIFT; + return MASK_OBJ_TAG; #endif } --