mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-25 19:02:45 -06:00
Merge pull request #7973 from Morph1984/debug-crash
host_memory: Fix fastmem crashes in debug builds
This commit is contained in:
commit
5192c64991
1 changed files with 2 additions and 2 deletions
|
@ -327,8 +327,8 @@ private:
|
||||||
bool IsNiechePlaceholder(size_t virtual_offset, size_t length) const {
|
bool IsNiechePlaceholder(size_t virtual_offset, size_t length) const {
|
||||||
const auto it = placeholders.upper_bound({virtual_offset, virtual_offset + length});
|
const auto it = placeholders.upper_bound({virtual_offset, virtual_offset + length});
|
||||||
if (it != placeholders.end() && it->lower() == virtual_offset + length) {
|
if (it != placeholders.end() && it->lower() == virtual_offset + length) {
|
||||||
const bool is_root = it == placeholders.begin() && virtual_offset == 0;
|
return it == placeholders.begin() ? virtual_offset == 0
|
||||||
return is_root || std::prev(it)->upper() == virtual_offset;
|
: std::prev(it)->upper() == virtual_offset;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue