diff --git a/lib/checkleakautovar.cpp b/lib/checkleakautovar.cpp index b9409a524..c0af12049 100644 --- a/lib/checkleakautovar.cpp +++ b/lib/checkleakautovar.cpp @@ -149,8 +149,8 @@ static bool isVariableComparison(const Token *tok, const std::string &comp, cons std::string s = tok->str(); if (s[0] == '>') s[1] = '<'; - else if (s[0] == '>') - s[1] = '<'; + else if (s[0] == '<') + s[1] = '>'; if (s == comp) { *vartok = tok->astOperand2(); }