Use unsigned type for intensity.

This commit is contained in:
XMRig 2019-08-17 05:22:09 +07:00
parent d254aafb93
commit bd9255136c
10 changed files with 27 additions and 29 deletions

View file

@ -221,5 +221,11 @@ xmrig::CpuThreads xmrig::BasicCpuInfo::threads(const Algorithm &algorithm) const
}
# endif
# ifdef XMRIG_ALGO_ARGON2
if (algorithm.family() == Algorithm::ARGON2) {
return count;
}
# endif
return CpuThreads(std::max<size_t>(count / 2, 1), 1);
}