diff options
Diffstat (limited to 'minethd.cpp')
-rw-r--r-- | minethd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/minethd.cpp b/minethd.cpp index 59ee6cc..a72d973 100644 --- a/minethd.cpp +++ b/minethd.cpp @@ -51,7 +51,7 @@ void thd_setaffinity(std::thread::native_handle_type h, uint64_t cpu_id) { #if defined(__APPLE__) thread_port_t mach_thread; - thread_affinity_policy_data_t policy = { cpu_id }; + thread_affinity_policy_data_t policy = { static_cast<integer_t>(cpu_id) }; mach_thread = pthread_mach_thread_np(h); thread_policy_set(mach_thread, THREAD_AFFINITY_POLICY, (thread_policy_t)&policy, 1); #elif defined(__FreeBSD__) |