diff --git a/src/kernel/src/process/mod.rs b/src/kernel/src/process/mod.rs index b5abe3da1..9540b22ed 100644 --- a/src/kernel/src/process/mod.rs +++ b/src/kernel/src/process/mod.rs @@ -420,7 +420,7 @@ impl VProc { } fn sys_thr_set_name(self: &Arc, td: &VThread, i: &SysIn) -> Result { - let tid: i32 = i.args[0].try_into().unwrap(); + let tid: i64 = i.args[0].into(); let name: Option<&str> = unsafe { i.args[1].to_str(32) }?; if tid == -1 { @@ -432,7 +432,7 @@ impl VProc { let thr = threads .iter() - .find(|t| t.id().get() == tid) + .find(|t| t.id().get() == tid as i32) .ok_or(SysErr::Raw(ESRCH))?; info!(