From be4db7b5d13ee830dd239b8e94cf3f1a7dc22dd2 Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Sun, 11 Oct 2026 10:07:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(narrow):=20StmtGenMixin=20exc=5Fcode=20?= =?UTF-8?q?=E6=98=BE=E5=BC=8F=20int(cst=5Fr.int=5Fval)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ast.Constant.int_val 为 int64,exc_code 为 int(并传入 const_int32),改用显式 int(...) --- App/lib/core/Gen/Stmt/StmtGenMixin.vp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/lib/core/Gen/Stmt/StmtGenMixin.vp b/App/lib/core/Gen/Stmt/StmtGenMixin.vp index 119a8ce..71955e6 100644 --- a/App/lib/core/Gen/Stmt/StmtGenMixin.vp +++ b/App/lib/core/Gen/Stmt/StmtGenMixin.vp @@ -438,7 +438,7 @@ novirtual class StmtGenMixin(StmtGenDeclMixin.StmtGenDeclMixin): exc_msg: mlirlite.Value* = None if ek == ast.ASTKind.Constant: cst_r: ast.Constant* = ast.Constant*(rn.exc) - if cst_r is not None and cst_r.const_kind == ast.CONST_INT: exc_code = cst_r.int_val + if cst_r is not None and cst_r.const_kind == ast.CONST_INT: exc_code = int(cst_r.int_val) elif ek == ast.ASTKind.Name: enm2: ast.Name* = ast.Name*(rn.exc) if enm2.id is not None: