From 37200b46e8ffab1f9487c48c1750d72776ecb0a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 8 May 2014 10:51:26 +0200 Subject: [PATCH] core: add parentheses around tests in conditions --- src/gui/gui-line.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/gui-line.c b/src/gui/gui-line.c index ad0647200..cc27c64a9 100644 --- a/src/gui/gui-line.c +++ b/src/gui/gui-line.c @@ -614,14 +614,13 @@ gui_line_match_tags (struct t_gui_line_data *line_data, tag_negated = 0; /* check if tag is negated (prefixed with a '!') */ - if (tags_array[i][j][0] == '!' && tags_array[i][j][1]) + if ((tags_array[i][j][0] == '!') && tags_array[i][j][1]) tag_negated = 1; for (k = 0; k < line_data->tags_count; k++) { if (string_match (line_data->tags_array[k], - tag_negated ? - tags_array[i][j] + 1 : tags_array[i][j], + (tag_negated) ? tags_array[i][j] + 1 : tags_array[i][j], 0)) { tag_found = 1;