Tokenizer::simplifyTokenList(): call link() for just inserted tokens.

This commit is contained in:
Slava Semushin 2009-08-22 20:41:26 +07:00
parent 6a5afd6243
commit 282f9104e7
1 changed files with 2 additions and 0 deletions

View File

@ -1348,6 +1348,8 @@ void Tokenizer::simplifyTokenList()
// Ok, we should be clean. Add ) after tempToken // Ok, we should be clean. Add ) after tempToken
tok->insertToken("("); tok->insertToken("(");
tempToken->insertToken(")"); tempToken->insertToken(")");
tok->next()->link(tempToken->next());
tempToken->next()->link(tok->next());
break; break;
} }
} }