Fixed complexity of assigning to vectors in constant functions

This commit is contained in:
Clifford Wolf 2015-10-01 12:15:35 +02:00
parent 9caeadf797
commit e51dcc83d0
1 changed files with 3 additions and 0 deletions

View File

@ -2828,6 +2828,9 @@ AstNode *AstNode::eval_const_function(AstNode *fcall)
if (stmt->type == AST_ASSIGN_EQ)
{
if (stmt->children.at(0)->type == AST_IDENTIFIER && stmt->children.at(0)->children.size() != 0 &&
stmt->children.at(0)->children.at(0)->type == AST_RANGE)
stmt->children.at(0)->children.at(0)->replace_variables(variables, fcall);
stmt->children.at(1)->replace_variables(variables, fcall);
while (stmt->simplify(true, false, false, 1, -1, false, true)) { }