mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-01 04:55:03 +00:00
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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user