mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Force LoongArchCPUInfoParser::TotalLogicalCount() to return int on all code paths
This commit is contained in:
1 parent
1c0f9d3d4f
commit
a04bb579dc
1 file changed
+1
-5
@@ -94,15 +94,11 @@ int LoongArchCPUInfoParser::TotalLogicalCount() {
|
||||
int low, high, found;
|
||||
std::getline(presentFile, line);
|
||||
found = sscanf(line.c_str(), "%d-%d", &low, &high);
|
||||
if (found == 1){
|
||||
return 1;
|
||||
}
|
||||
if (found == 2){
|
||||
return high - low + 1;
|
||||
}
|
||||
}else{
|
||||
return 1;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user