1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-26 20:37:25 +00:00

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

This commit is contained in:
Marc Zinnschlag 2013-03-17 17:13:25 +01:00
parent e8b08326dc
commit 46bde604f9

View File

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