CPUDetect: saturate lower bound of CPU count to 1

This commit is contained in:
Sean McGovern
2021-05-11 23:02:23 -04:00
parent 328074e9bc
commit 4cc34e384c
+1 -1
View File
@@ -396,7 +396,7 @@ void CPUInfo::Detect() {
}
// This seems to be the count per core. Hopefully all cores are the same, but we counted each above.
logical_cpu_count /= std::max(num_cores, 1);
std::max(logical_cpu_count /= std::max(num_cores, 1), 1);
#elif PPSSPP_PLATFORM(MAC)
int num = 0;
size_t sz = sizeof(num);