diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 3470532c6..824c6f2b0 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -86,7 +86,7 @@ void CheckOther::clarifyCalculation() continue; // calculation - if (!Token::Match(cond, "[+-*/]") && !Token::Match(cond, "<<|>>")) + if (!cond->isArithmeticalOp()) continue; const std::string &op = cond->str();