Use unsigned type for intensity.

This commit is contained in:
XMRig
2019-08-17 05:22:09 +07:00
parent ee330f376c
commit bb10897271
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);
}