From a93d71cd10b2c2a0bee2bd106cae0288145e42b0 Mon Sep 17 00:00:00 2001 From: fireice-uk Date: Mon, 10 Apr 2017 17:47:33 +0100 Subject: [PATCH] Fix priority for 32+ CPUs --- minethd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minethd.cpp b/minethd.cpp index 27f7271..55bf9e7 100644 --- a/minethd.cpp +++ b/minethd.cpp @@ -33,7 +33,7 @@ void thd_setaffinity(std::thread::native_handle_type h, uint64_t cpu_id) { - SetThreadAffinityMask(h, 1 << cpu_id); + SetThreadAffinityMask(h, 1ULL << cpu_id); } #else #include