Soft'N'Design Software
/
projects
/
calc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fe742c
)
fix comparison operator priority
author
Laurent Mazet
<mazet@softndesign.org>
Sun, 22 Jan 2023 14:37:32 +0000
(15:37 +0100)
committer
Laurent Mazet
<mazet@softndesign.org>
Sun, 22 Jan 2023 14:37:32 +0000
(15:37 +0100)
parser.c
patch
|
blob
|
blame
|
history
diff --git
a/parser.c
b/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