astIsFloat: Fix crash when there is no second operand for '.'
This commit is contained in:
parent
f7f44f24c7
commit
ebc0b6cd44
|
@ -34,7 +34,7 @@ namespace {
|
|||
|
||||
static bool astIsFloat(const Token *tok, bool unknown)
|
||||
{
|
||||
if (tok->str() == ".")
|
||||
if (tok->astOperand2() && tok->str() == ".")
|
||||
return astIsFloat(tok->astOperand2(), unknown);
|
||||
|
||||
if (tok->astOperand1() && tok->str() != "?" && astIsFloat(tok->astOperand1(),unknown))
|
||||
|
|
Loading…
Reference in New Issue