diff --git a/minethd.cpp b/minethd.cpp index 02fe275..728abbb 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