Add parentheses in an if to make the condition more clear

This commit is contained in:
Jiří Techet 2016-06-09 09:41:09 +02:00
parent 65f84df5ca
commit ca8ef9643e

View File

@ -2080,8 +2080,8 @@ static GPtrArray *filter_tags(GPtrArray *tags, TMTag *current_tag, gboolean defi
foreach_ptr_array(tmtag, i, tags)
{
if (definition && !(tmtag->type & forward_types) ||
!definition && (tmtag->type & forward_types))
if ((definition && !(tmtag->type & forward_types)) ||
(!definition && (tmtag->type & forward_types)))
{
/* If there are typedefs of e.g. a struct such as
* "typedef struct Foo {} Foo;", filter out the typedef unless