tokenize: Fixed a bug in the tokenizer

This commit is contained in:
Daniel Marjamäki 2008-09-11 18:37:36 +00:00
parent ca0f04b825
commit 259e0ce238
1 changed files with 1 additions and 1 deletions

View File

@ -585,7 +585,7 @@ void TokenizeCode(std::istream &code, const unsigned int FileIndex)
const char *type2 = getstr(tok, 2);
for ( TOKEN *tok2 = tok; tok2; tok2 = tok2->next )
{
if (tok2->str!=type2 && strcmp(tok2->str,type2)==0)
if (tok2->str!=type1 && tok2->str!=type2 && strcmp(tok2->str,type2)==0)
{
free(tok2->str);
tok2->str = _strdup(type1);