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

@ -145,7 +145,7 @@ xmrig::CpuThreads xmrig::AdvancedCpuInfo::threads(const Algorithm &algorithm) co
count = threads() / 2;
}
int intensity = algorithm.maxIntensity() == 1 ? -1 : 1;
uint32_t intensity = algorithm.maxIntensity() == 1 ? 0 : 1;
# ifdef XMRIG_ALGO_CN_PICO
if (algorithm == Algorithm::CN_PICO_0 && (count / cores()) >= 2) {