From 15571ef58ecde4c099377d80856affaebbedea85 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 13 Dec 2016 09:46:31 +0000 Subject: [PATCH] Fix swapped operands in boolean operators in expression parser. --- src/expr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expr.cpp b/src/expr.cpp index 46263480..745a739a 100644 --- a/src/expr.cpp +++ b/src/expr.cpp @@ -787,7 +787,7 @@ bool ExprParser::Reduce(std::string *error) { case TokenType::BINARY_OP: { Token b = PopOperand(error); if(b.IsError()) return false; - r.expr = a.expr->AnyOp(op.expr->op, b.expr); + r.expr = b.expr->AnyOp(op.expr->op, a.expr); break; }