Issue #601: unary minus was interpreted as binary minus when used in an argument list without comma

actorid
Marc Zinnschlag 12 years ago
parent e8b08326dc
commit 46bde604f9

@ -603,8 +603,8 @@ namespace Compiler
switch (code)
{
case Scanner::S_plus: pushBinaryOperator ('+'); return true;
case Scanner::S_minus: pushBinaryOperator ('-'); return true;
case Scanner::S_plus: c = '+'; break;
case Scanner::S_minus: c = '-'; break;
case Scanner::S_mult: pushBinaryOperator ('*'); return true;
case Scanner::S_div: pushBinaryOperator ('/'); return true;
case Scanner::S_cmpEQ: c = 'e'; break;

Loading…
Cancel
Save