fix evry comparison macro to work as expected

missing parens = !operating as intended in many cases
This commit is contained in:
Mike Blumenkrantz 2015-04-14 20:43:44 -04:00
parent af59e95b28
commit d8505f2978
1 changed files with 2 additions and 2 deletions

View File

@ -188,10 +188,10 @@ struct _Evry_Event_Action_Performed
eina_stringshare_replace(&(EVRY_ITEM(_it)->icon), _icon);
#define CHECK_TYPE(_item, _type) \
((Evry_Item *)_item)->type == _type
(((Evry_Item *)_item)->type == _type)
#define CHECK_SUBTYPE(_item, _type) \
((Evry_Item *)_item)->subtype == _type
(((Evry_Item *)_item)->subtype == _type)
#define IS_BROWSEABLE(_item) ((Evry_Item *)_item)->browseable