diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-18 10:54:22 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-18 10:54:22 +0000 |
commit | 2f6828223acfd6e12f4951e9af9b77d72d7655e9 (patch) | |
tree | 9c055d5abfed79a58f3b8971d93e55fef432fdca /src/libutil/expression.c | |
parent | 1ba32151a1508dee16e0cd6e76e9392d848fcb00 (diff) | |
download | rspamd-2f6828223acfd6e12f4951e9af9b77d72d7655e9.tar.gz rspamd-2f6828223acfd6e12f4951e9af9b77d72d7655e9.zip |
Use reft-associativity by default for all ops.
Diffstat (limited to 'src/libutil/expression.c')
-rw-r--r-- | src/libutil/expression.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libutil/expression.c b/src/libutil/expression.c index 664afa21f..91e52b6d7 100644 --- a/src/libutil/expression.c +++ b/src/libutil/expression.c @@ -468,8 +468,8 @@ rspamd_parse_expression (const gchar *line, gsize len, /* We ignore associativity for now */ if (op_stack != OP_OBRACE && - rspamd_expr_logic_priority (op) <= - rspamd_expr_logic_priority(op_stack)) { + rspamd_expr_logic_priority (op) < + rspamd_expr_logic_priority (op_stack)) { elt.type = ELT_OP; elt.p.op = op_stack; g_array_append_val (e->expressions, elt); @@ -497,6 +497,7 @@ rspamd_parse_expression (const gchar *line, gsize len, else { state = PARSE_ATOM; } + break; } } |