fixed segmentation fault in case typeStartToken() returns 0
This commit is contained in:
parent
efc84ac310
commit
348c26f59c
|
@ -3318,7 +3318,8 @@ void CheckOther::checkNegativeBitwiseShift()
|
||||||
continue;
|
continue;
|
||||||
if (!rhs->isNumber() && !rhs->variable())
|
if (!rhs->isNumber() && !rhs->variable())
|
||||||
continue;
|
continue;
|
||||||
if (rhs->variable() && !rhs->variable()->typeStartToken()->isStandardType())
|
if (rhs->variable() &&
|
||||||
|
(!rhs->variable()->typeStartToken() || !rhs->variable()->typeStartToken()->isStandardType()))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue