diff --git a/Common/CPUDetect.cpp b/Common/CPUDetect.cpp index 325ada59ac..e5bc722af9 100644 --- a/Common/CPUDetect.cpp +++ b/Common/CPUDetect.cpp @@ -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);