Skip to content

Commit 5f10cb1

Browse files
committed
fix
1 parent 6b6136b commit 5f10cb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/symboldatabase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7819,7 +7819,7 @@ void SymbolDatabase::setValueTypeInTokenList(bool reportDebugWarnings, Token *to
78197819

78207820
setValueType(tok, ValueType(sign, type, 0U));
78217821
}
7822-
} else if (tok->isComparisonOp() || tok->tokType() == Token::eLogicalOp) {
7822+
} else if ((tok->isComparisonOp() || tok->tokType() == Token::eLogicalOp) && tok->astOperand2()) {
78237823
if (tok->isCpp() && tok->isComparisonOp() && (getClassScope(tok->astOperand1()) || getClassScope(tok->astOperand2()))) {
78247824
const Function *function = getOperatorFunction(tok);
78257825
if (function) {

0 commit comments

Comments
 (0)