We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71ba513 commit 27d9aaaCopy full SHA for 27d9aaa
lib/checkother.cpp
@@ -1502,7 +1502,7 @@ void CheckOther::checkCharVariable()
1502
v1 = tok->astOperand1()->getValueGE(0x80, _settings);
1503
if (v1 && !(tok->str() == "&" && v2 && v2->isKnown() && v2->intvalue >= 0 && v2->intvalue < 0x100))
1504
warn = true;
1505
- } else if (!warn && astIsSignedChar(tok->astOperand2())) {
+ } else if (astIsSignedChar(tok->astOperand2())) {
1506
const ValueFlow::Value *v1 = tok->astOperand2()->getValueLE(-1, _settings);
1507
const ValueFlow::Value *v2 = tok->astOperand1()->getMaxValue(false);
1508
if (!v1)
0 commit comments