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:
parent
1a3be7c1ee
commit
072f8d720c
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue