[geany/geany] ca8ef9: Add parentheses in an if to make the condition more clear
Jiří Techet
git-noreply at xxxxx
Thu Jun 9 07:41:09 UTC 2016
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Thu, 09 Jun 2016 07:41:09 UTC
Commit: ca8ef9643e7ca347a03875798fa1bbd122e9c917
https://github.com/geany/geany/commit/ca8ef9643e7ca347a03875798fa1bbd122e9c917
Log Message:
-----------
Add parentheses in an if to make the condition more clear
Modified Paths:
--------------
src/symbols.c
Modified: src/symbols.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -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
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list