mirror of https://github.com/WerWolv/ImHex.git
patterns: Fixed ternaries not being proper numeric expressions
This commit is contained in:
parent
f34b946ea9
commit
b7dd936dae
|
@ -297,7 +297,7 @@ namespace hex::lang {
|
||||||
throwParseError("expected ':' in ternary expression");
|
throwParseError("expected ':' in ternary expression");
|
||||||
|
|
||||||
auto third = this->parseBooleanOr();
|
auto third = this->parseBooleanOr();
|
||||||
node = new ASTNodeTernaryExpression(node, second, third, Token::Operator::TernaryConditional);
|
node = TO_NUMERIC_EXPRESSION(new ASTNodeTernaryExpression(node, second, third, Token::Operator::TernaryConditional));
|
||||||
}
|
}
|
||||||
|
|
||||||
nodeCleanup.release();
|
nodeCleanup.release();
|
||||||
|
|
Loading…
Reference in New Issue