From 259e0ce2385fcab8021bc3c2ca1acba7ce9e34e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 11 Sep 2008 18:37:36 +0000 Subject: [PATCH] tokenize: Fixed a bug in the tokenizer --- tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokenize.cpp b/tokenize.cpp index 87f5cd08c..b0333813a 100644 --- a/tokenize.cpp +++ b/tokenize.cpp @@ -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);