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");
|
||||
|
||||
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();
|
||||
|
|
Loading…
Reference in New Issue