Remove unnecessary intermediate pointer cast in Thread::new.

This commit is contained in:
Vytautas Astrauskas 2020-04-02 07:15:45 -07:00
parent ec8275c364
commit 1c1bd957d5

View File

@ -53,7 +53,7 @@ pub unsafe fn new_with_coreid(
let ret = abi::spawn(
&mut tid as *mut Tid,
thread_start,
p as *mut u8 as usize,
p as usize,
Priority::into(NORMAL_PRIO),
core_id,
);