fix to parser in cases like 1.0-1.0-2.0

(thanks to mastertrenten)


git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@1363 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
w1z7ard
2011-11-03 05:11:18 +00:00
parent b3aecc5f09
commit f9cae43ff9

View File

@ -1014,7 +1014,7 @@ TreeExpr * Parser::insert_infix_op(InfixOp * infix_op, TreeExpr **root)
of the item to be inserted is greater than the root's
precedence, then make gen_expr the root */
if (infix_op->precedence > (*root)->infix_op->precedence)
if (infix_op->precedence >= (*root)->infix_op->precedence)
{
new_root = new TreeExpr(infix_op, NULL, *root, NULL);
(*root) = new_root;