From: Vsevolod Stakhov Date: Wed, 18 Mar 2015 10:54:22 +0000 (+0000) Subject: Use reft-associativity by default for all ops. X-Git-Tag: 0.9.0~480 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2f6828223acfd6e12f4951e9af9b77d72d7655e9;p=rspamd.git Use reft-associativity by default for all ops. --- 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; } }