diff --git a/src/kernel/src/process/mod.rs b/src/kernel/src/process/mod.rs index 25c005679..7558e7909 100644 --- a/src/kernel/src/process/mod.rs +++ b/src/kernel/src/process/mod.rs @@ -421,7 +421,7 @@ impl VProc { } fn sys_thr_set_name(self: &Arc, i: &SysIn) -> Result { - let tid: i32 = i.args[0].try_into().unwrap(); + let tid: i64 = i.args[0].try_into().unwrap(); let name: Option<&str> = unsafe { i.args[1].to_str(32) }?; if tid == -1 { @@ -433,7 +433,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!(