From 84a9cc83f4759e30949fb35ab733bc5f070ed178 Mon Sep 17 00:00:00 2001 From: JorySeverijnse Date: Sat, 13 Dec 2025 20:09:16 +0100 Subject: [PATCH] Fix std::max usage for core count calculation --- src/core/Miner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {