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