mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-09-21 19:13:20 +02:00
exo: fix register access tables to page start
This commit is contained in:
parent
41b28bb0c4
commit
e8de1e3c34
@ -54,11 +54,11 @@ namespace ams::secmon::smc {
|
||||
for (int last = arr.size() - 1; last >= 0; --last) {
|
||||
if (arr[last] != 0) {
|
||||
const int end = last + 1;
|
||||
for (int start = 0; start < end; ++start) {
|
||||
if (arr[start] != 0) {
|
||||
return std::make_pair(static_cast<size_t>(start), static_cast<size_t>(end));
|
||||
}
|
||||
}
|
||||
//for (int start = 0; start < end; ++start) {
|
||||
// if (arr[start] != 0) {
|
||||
// return std::make_pair(static_cast<size_t>(start), static_cast<size_t>(end));
|
||||
// }
|
||||
//}
|
||||
return std::make_pair(static_cast<size_t>(0), static_cast<size_t>(end));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user