diff options
author | fireice-uk <fireice-uk@users.noreply.github.com> | 2017-06-20 12:50:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-20 12:50:51 +0100 |
commit | cb68bf2b310dad356683bf0f6827f0455f41f9d4 (patch) | |
tree | c58a7ef1d04f9ef5f37a22c5d7e166cd03439843 /minethd.cpp | |
parent | dabd9475bc05f46842d697d0aefb53d2e17656df (diff) | |
parent | 5697093fd4982bdd74e69db3217ae5ded3011b6e (diff) | |
download | xmr-stak-cb68bf2b310dad356683bf0f6827f0455f41f9d4.zip xmr-stak-cb68bf2b310dad356683bf0f6827f0455f41f9d4.tar.gz |
Merge pull request #154 from rsanheim/dev-mac
Dev branch with mac fix
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__) |