[gnome-commander/ConvertWarningsToErrors] src/gnome-cmd-main-win.cc: fix for -Wparentheses



commit 6ef91086b40d204d07a843d9f45297ae3420cb41
Author: Mamoru TASAKA <mtasaka fedoraproject org>
Date:   Mon Apr 24 13:09:56 2017 +0900

    src/gnome-cmd-main-win.cc: fix for -Wparentheses
    
    src/gnome-cmd-main-win.cc:138:34: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
    src/gnome-cmd-main-win.cc:139:34: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]

 src/gnome-cmd-main-win.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-main-win.cc b/src/gnome-cmd-main-win.cc
index 2fd508a..ecf06fb 100644
--- a/src/gnome-cmd-main-win.cc
+++ b/src/gnome-cmd-main-win.cc
@@ -135,8 +135,8 @@ gint gnome_cmd_key_snooper(GtkWidget *grab_widget, GdkEventKey *event, GnomeCmdM
     if (event->type!=GDK_KEY_PRESS)
         return FALSE;
 
-    if (!(event->keyval >= GDK_A && event->keyval <= GDK_Z || event->keyval >= GDK_a && event->keyval <= 
GDK_z ||
-          event->keyval >= GDK_0 && event->keyval <= GDK_9 ||
+    if (!((event->keyval >= GDK_A && event->keyval <= GDK_Z) || (event->keyval >= GDK_a && event->keyval <= 
GDK_z) ||
+          (event->keyval >= GDK_0 && event->keyval <= GDK_9) ||
           event->keyval == GDK_period || event->keyval == GDK_question|| event->keyval == GDK_asterisk || 
event->keyval == GDK_bracketleft))
         return FALSE;
 


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