[gnome-commander] src/gnome-cmd-file-selector.cc: fix for -Wparenthesis



commit cd2a8aa97d9cea61f5f7320fef6e3d0140098ba0
Author: Mamoru TASAKA <mtasaka fedoraproject org>
Date:   Sun Apr 23 15:51:31 2017 +0900

    src/gnome-cmd-file-selector.cc: fix for -Wparenthesis
    
    src/gnome-cmd-file-selector.cc:613:34: error: suggest parentheses around '&&' within '||' 
[-Werror=parentheses]

 src/gnome-cmd-file-selector.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index b73edc7..dc0762a 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -610,8 +610,8 @@ static gboolean on_list_key_pressed_private (GtkCList *clist, GdkEventKey *event
 {
     if (state_is_blank (event->state) || state_is_shift (event->state))
     {
-        if (event->keyval>=GDK_A && event->keyval<=GDK_Z ||
-            event->keyval>=GDK_a && event->keyval<=GDK_z ||
+        if ((event->keyval>=GDK_A && event->keyval<=GDK_Z) ||
+            (event->keyval>=GDK_a && event->keyval<=GDK_z) ||
             event->keyval==GDK_period)
         {
             static gchar text[2];


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]