match: optimisation
This commit is contained in:
parent
1e6b54b2c5
commit
12a7d1df4b
|
@ -286,7 +286,7 @@ bool Token::Match(const Token *tok, const char pattern[], unsigned int varid)
|
|||
}
|
||||
|
||||
// Parse "not" options. Token can be anything except the given one
|
||||
else if (str[1] == '!' && str[0] == '!' && strlen(str) > 2)
|
||||
else if (str[1] == '!' && str[0] == '!' && str[2] != '\0')
|
||||
{
|
||||
if (strcmp(tok->aaaa(), &(str[2])) == 0)
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue