Fix segmentation fault when checking build/tokenize.cpp
This commit is contained in:
parent
deef4642d4
commit
efc84ac310
|
@ -3318,7 +3318,7 @@ void CheckOther::checkNegativeBitwiseShift()
|
|||
continue;
|
||||
if (!rhs->isNumber() && !rhs->variable())
|
||||
continue;
|
||||
if (!rhs->variable()->typeStartToken()->isStandardType())
|
||||
if (rhs->variable() && !rhs->variable()->typeStartToken()->isStandardType())
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue