fix evry comparison macro to work as expected
authorMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 15 Apr 2015 00:43:44 +0000 (20:43 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 15 Apr 2015 00:43:44 +0000 (20:43 -0400)
missing parens = !operating as intended in many cases

src/modules/everything/evry_api.h

index e484487..27997f9 100644 (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