We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc33aee commit 6c9bcbcCopy full SHA for 6c9bcbc
1 file changed
lib/vf_settokenvalue.cpp
@@ -291,9 +291,9 @@ namespace ValueFlow
291
292
combineValueProperties(value1, value2, result);
293
294
- if (Token::simpleMatch(parent, "==") && result.intvalue)
+ if (Token::simpleMatch(parent, "==") && result.intvalue && !(value1.intvalue == 0 && value2.intvalue == 0))
295
continue;
296
- if (Token::simpleMatch(parent, "!=") && !result.intvalue)
+ if (Token::simpleMatch(parent, "!=") && !result.intvalue && !(value1.intvalue == 0 && value2.intvalue == 0))
297
298
299
setTokenValue(parent, std::move(result), settings);
0 commit comments