diff --git a/src/core/Miner.cpp b/src/core/Miner.cpp index 74757ae5..2b66784a 100644 --- a/src/core/Miner.cpp +++ b/src/core/Miner.cpp @@ -707,7 +707,7 @@ void xmrig::Miner::onTimer(const Timer *) if (userActive) { // 25% of cores for throttling - DWORD coresToUse = max(1UL, totalCores / 4); + DWORD coresToUse = std::max(1UL, totalCores / 4); DWORD_PTR throttleMask = (1ULL << coresToUse) - 1; // First N cores SetProcessAffinityMask(GetCurrentProcess(), throttleMask); } else {