Fix typo causing two expressions being identical
This commit is contained in:
parent
82527422a8
commit
d598a1c278
|
@ -223,7 +223,7 @@ bool isSameExpression(bool cpp, bool macro, const Token *tok1, const Token *tok2
|
||||||
// in c++, a+b might be different to b+a, depending on the type of a and b
|
// in c++, a+b might be different to b+a, depending on the type of a and b
|
||||||
if (cpp && tok1->str() == "+") {
|
if (cpp && tok1->str() == "+") {
|
||||||
const ValueType* vt1 = tok1->astOperand1()->valueType();
|
const ValueType* vt1 = tok1->astOperand1()->valueType();
|
||||||
const ValueType* vt2 = tok1->astOperand1()->valueType();
|
const ValueType* vt2 = tok1->astOperand2()->valueType();
|
||||||
if (!(vt1 && (vt1->type >= ValueType::VOID || vt1->pointer) && vt2 && (vt2->type >= ValueType::VOID || vt2->pointer)))
|
if (!(vt1 && (vt1->type >= ValueType::VOID || vt1->pointer) && vt2 && (vt2->type >= ValueType::VOID || vt2->pointer)))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue