From aae878752e55be9f05dfbde37122e3726527e532 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 13 Sep 2025 22:41:49 +0900 Subject: feat: support cast expression in constant evaluation --- src/parse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/parse.c b/src/parse.c index c742f88..82c431a 100644 --- a/src/parse.c +++ b/src/parse.c @@ -2304,6 +2304,8 @@ static int eval(AstNode* e) { } else { return eval(e->node_else); } + } else if (e->kind == AstNodeKind_cast_expr) { + return eval(e->node_operand); } else { unimplemented(); } -- cgit v1.2.3-70-g09d2