mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
CPUDetect: saturate lower bound of CPU count to 1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user