Fix swapped operands in boolean operators in expression parser.

pull/3/merge
whitequark 2016-12-13 09:46:31 +00:00
parent 3dd2fc0093
commit 15571ef58e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}