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;
|
||||
if (!rhs->isNumber() && !rhs->variable())
|
||||
continue;
|
||||
if (rhs->variable() && !rhs->variable()->typeStartToken()->isStandardType())
|
||||
if (rhs->variable() &&
|
||||
(!rhs->variable()->typeStartToken() || !rhs->variable()->typeStartToken()->isStandardType()))
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue