From 7d6ef71c4d2bb94b191bed7c817eca3cc9b3756d Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Mon, 18 Sep 2017 02:45:02 +0300 Subject: [PATCH] More selective match pattern --- lib/checkcondition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkcondition.cpp b/lib/checkcondition.cpp index 38e624e06..fd09fcca3 100644 --- a/lib/checkcondition.cpp +++ b/lib/checkcondition.cpp @@ -178,7 +178,7 @@ bool CheckCondition::assignIfParseScope(const Token * const assignTok, if (Token::Match(tok2, "[(,] &| %varid% [,)]", varid)) { return true; } - if (Token::Match(tok2,"&&|%oror%|( %varid% %any% %num% &&|%oror%|)", varid)) { + if (Token::Match(tok2,"&&|%oror%|( %varid% ==|!= %num% &&|%oror%|)", varid)) { const Token *vartok = tok2->next(); const std::string& op(vartok->strAt(1)); const MathLib::bigint num2 = MathLib::toLongNumber(vartok->strAt(2));