summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-01-24 09:09:30 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-01-24 09:09:30 -0500
commit7645cdc5e3635623f89042d80d4dfd5dd4a95dda (patch)
tree4e8b2acf48294c8b35aca0881fa90e3392f8c546 /parse.c
parent49d4492692d0b1fa382ecadfd4ef76107f584df7 (diff)
fixed operator precedence for as
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 54a6bc5..1ac882e 100644
--- a/parse.c
+++ b/parse.c
@@ -912,7 +912,7 @@ static void fprint_expr(FILE *out, Expression *e);
#define NOT_AN_OP -1
/* cast/new aren't really operators since they operate on types, not exprs. */
-#define CAST_PRECEDENCE 45
+#define CAST_PRECEDENCE -10
#define NEW_PRECEDENCE 22
static int op_precedence(Keyword op) {
switch (op) {