Correctly parse numbers with sign, in that case sthe sign is not an unary operator.

git-svn-id: http://voip.null.ro/svn/yate@5788 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2014-02-26 12:25:13 +00:00
parent 1a3be7c1ee
commit 072f8d720c
1 changed files with 2 additions and 0 deletions

View File

@ -341,6 +341,8 @@ bool ExpEvaluator::getOperandInternal(ParsePoint& expr, bool endOk, int preceden
expr++;
return true;
}
if (getNumber(expr))
return true;
Opcode op = getUnaryOperator(expr);
if (op != OpcNone) {
if (!getOperand(expr,false,getPrecedence(op)))