From e58a09f63b93eac23ec8af249757eec4dec52bbc 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 90a6f31..22471f4 100644 --- a/minethd.cpp +++ b/minethd.cpp @@ -32,7 +32,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