mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
CPUDetect: prevent a divide-by-zero when ParseCPUList() fails
This commit is contained in:
1 parent
36549a960f
commit
328074e9bc
1 file changed
+1
-1
@@ -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 /= num_cores;
|
||||
logical_cpu_count /= std::max(num_cores, 1);
|
||||
#elif PPSSPP_PLATFORM(MAC)
|
||||
int num = 0;
|
||||
size_t sz = sizeof(num);
|
||||
|
||||
Reference in new issue
Block a user