From 5bec5be7d3a53f013caeab8a4e5244656f481c58 Mon Sep 17 00:00:00 2001 From: "M.Amin Rayej" Date: Thu, 24 Oct 2024 13:05:09 +0330 Subject: [PATCH] fix usage of exit code --- lib/wasix/src/syscalls/wasix/thread_spawn.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wasix/src/syscalls/wasix/thread_spawn.rs b/lib/wasix/src/syscalls/wasix/thread_spawn.rs index 3c8c1c56235..415e2be7949 100644 --- a/lib/wasix/src/syscalls/wasix/thread_spawn.rs +++ b/lib/wasix/src/syscalls/wasix/thread_spawn.rs @@ -235,7 +235,7 @@ fn call_module( .runtime .on_taint(TaintReason::UnknownWasiVersion); ret = Errno::Noexec; - exit_code = Some(ExitCode::Other(128 + ret as i32)); + exit_code = Some(ExitCode::from(128 + ret as i32)); } Err(err) => { debug!("failed with runtime error: {}", err); @@ -243,7 +243,7 @@ fn call_module( .runtime .on_taint(TaintReason::RuntimeError(err)); ret = Errno::Noexec; - exit_code = Some(ExitCode::Other(128 + ret as i32)); + exit_code = Some(ExitCode::from(128 + ret as i32)); } } } else {