<p>Attempting to use a negative number with math_eval in the mathops module results in a 'Mismatched tokens expression'</p>

<p>Example:<br>
math_eval("10 + (-5)", "$var(test)");<br>
Gives the following errors:<br>
ERROR:mathops:pop_number: RPN Stack Empty<br>
ERROR:mathops:pop_number: RPN Stack Empty<br>
ERROR:mathops:evaluate_rpn_output: Parse expr error: stack has 0 elements<br>
ERROR:mathops:evaluate_exp: Mismatched tokens in expression: &lt;10 + (-5)&gt;</p>

<p>Happens with or without the parentheses. </p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/788">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciXw76ZC0fPsI3sEJCmqEyrLFbAU_ks5pjOWIgaJpZM4HYgPF.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/788"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>