diff --git a/plugins/libimhex/source/lang/parser.cpp b/plugins/libimhex/source/lang/parser.cpp index 7b4080a9f..002f8a57d 100644 --- a/plugins/libimhex/source/lang/parser.cpp +++ b/plugins/libimhex/source/lang/parser.cpp @@ -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();