Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

Commit

Permalink
ci: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomio committed Jun 25, 2022
1 parent ae3fc3a commit 729a225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub(crate) fn thread_amount() -> Option<NonZeroUsize> {
let mut state = [0u32; 1296];
let mut count: u32 = 0;
let rc =
unsafe { task_threads(mask_task_self(), &mut state as *mut *mut _, &mut count as *mut _) };
unsafe { task_threads(mach_task_self(), &mut state as *mut *mut u32, &mut count as *mut _) };

if rc == KERN_SUCCESS {
NonZeroUsize::new(usize::try_from(count).expect("Failed converting from u32 to usize"))
Expand Down

0 comments on commit 729a225

Please sign in to comment.