From f03bb30a5a6407819b15e80262e14854368991b9 Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Sun, 24 Apr 2016 17:37:26 +0000 Subject: [PATCH] (update_split): cleanup cppcheck warning. Cleanup following cppcheck warnings: [src/filemanager/layout.c:231]: (style) Clarify calculation precedence for '&' and '?'. Signed-off-by: Andreas Mohr Signed-off-by: Andrew Borodin --- src/filemanager/layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filemanager/layout.c b/src/filemanager/layout.c index a95c501b0..6b6eda1d7 100644 --- a/src/filemanager/layout.c +++ b/src/filemanager/layout.c @@ -228,7 +228,7 @@ update_split (const WDialog * h) check_options[0].widget->state = panels_layout.vertical_equal ? 1 : 0; widget_redraw (WIDGET (check_options[0].widget)); - tty_setcolor (check_options[0].widget->state & C_BOOL ? DISABLED_COLOR : COLOR_NORMAL); + tty_setcolor ((check_options[0].widget->state & C_BOOL) ? DISABLED_COLOR : COLOR_NORMAL); widget_move (h, 6, 5); if (panels_layout.horizontal_split)