mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-02 19:08:03 -06:00
avoid std::prev(begin())
This commit is contained in:
parent
c5e401d215
commit
7e2af62e56
@ -1426,7 +1426,10 @@ u64 MemoryManager::GetFlexibleMappedBytesInRangeLocked(VAddr virtual_addr, u64 s
|
||||
}
|
||||
|
||||
u64 mapped_bytes = 0;
|
||||
auto it = std::prev(vma_map.upper_bound(range_start));
|
||||
auto it = vma_map.upper_bound(range_start);
|
||||
if (it != vma_map.begin()) {
|
||||
it = std::prev(it);
|
||||
}
|
||||
while (it != vma_map.end() && it->second.base < range_end) {
|
||||
const auto& vma = it->second;
|
||||
const VAddr vma_end = vma.base + vma.size;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user