fix comparison operator priority
authorLaurent Mazet <mazet@softndesign.org>
Sun, 22 Jan 2023 14:37:32 +0000 (15:37 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Sun, 22 Jan 2023 14:37:32 +0000 (15:37 +0100)
parser.c

index 844e9417f18b19d2ec4b32780e514dda6338c224..76f8da9f730305edbcccd7644bf0fa5f8de33c03 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -78,12 +78,12 @@ keyword_t operators[NB_OPERATORS] = {
     { "/",   Div, 2, 1, 2},
     { "%",   Mod, 2, 1, 3},
     { "^",   Pow, 2, 1, 4},
-    { "==",  Equal, 2, 2, 6},
-    { "!=",  Diff, 2, 2, 6},
-    { ">=",  Ge, 2, 2, 6},
-    { "<=",  Le, 2, 2, 6},
-    { ">",   Gt, 2, 1, 6},
-    { "<",   Lt, 2, 1, 6}
+    { "==",  Equal, 2, 2, 0},
+    { "!=",  Diff, 2, 2, 0},
+    { ">=",  Ge, 2, 2, 0},
+    { "<=",  Le, 2, 2, 0},
+    { ">",   Gt, 2, 1, 0},
+    { "<",   Lt, 2, 1, 0}
 };
 
 #define NB_FUNCTIONS 12