From 16b3c9f38ca9930246cd4d32bd99de07b677ae3c Mon Sep 17 00:00:00 2001 From: zrr1999 <2742392377@qq.com> Date: Sun, 19 Apr 2026 18:18:39 +0800 Subject: [PATCH] fix: align process_run_status/exit signatures to I32 (int-type-split) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Aligns `process_run_status` and `exit` return/parameter types from `Int` to `I32`, following the spore int-type-split change (Ty::Int → sized variants). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/basic_cli/cmd.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/basic_cli/cmd.sp b/src/basic_cli/cmd.sp index ce4a037..9ba9744 100644 --- a/src/basic_cli/cmd.sp +++ b/src/basic_cli/cmd.sp @@ -7,7 +7,7 @@ pub foreign fn process_run(cmd: Str, args: List[Str]) -> Str ! ExecError uses [Spawn] /// Run a command and return its exit code. -pub foreign fn process_run_status(cmd: Str, args: List[Str]) -> Int ! ExecError uses [Spawn] +pub foreign fn process_run_status(cmd: Str, args: List[Str]) -> I32 ! ExecError uses [Spawn] /// Exit the current process with the provided status code. -pub foreign fn exit(code: Int) -> Never uses [Exit] +pub foreign fn exit(code: I32) -> Never uses [Exit]