summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-03-03 00:31:15 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-03-03 00:36:59 +0100
commitb33f23cc4615f2eee002a972a62eb50eec8e18e5 (patch)
treeb5d3b7410bc77b511e4eee8e8a3d077c3b28f403
parentMerge pull request #7959 from merryhime/cmpxchg (diff)
downloadyuzu-b33f23cc4615f2eee002a972a62eb50eec8e18e5.tar
yuzu-b33f23cc4615f2eee002a972a62eb50eec8e18e5.tar.gz
yuzu-b33f23cc4615f2eee002a972a62eb50eec8e18e5.tar.bz2
yuzu-b33f23cc4615f2eee002a972a62eb50eec8e18e5.tar.lz
yuzu-b33f23cc4615f2eee002a972a62eb50eec8e18e5.tar.xz
yuzu-b33f23cc4615f2eee002a972a62eb50eec8e18e5.tar.zst
yuzu-b33f23cc4615f2eee002a972a62eb50eec8e18e5.zip
-rw-r--r--src/common/host_memory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp
index 28949fe5e..c465cfc14 100644
--- a/src/common/host_memory.cpp
+++ b/src/common/host_memory.cpp
@@ -327,8 +327,8 @@ private:
bool IsNiechePlaceholder(size_t virtual_offset, size_t length) const {
const auto it = placeholders.upper_bound({virtual_offset, virtual_offset + length});
if (it != placeholders.end() && it->lower() == virtual_offset + length) {
- const bool is_root = it == placeholders.begin() && virtual_offset == 0;
- return is_root || std::prev(it)->upper() == virtual_offset;
+ return it == placeholders.begin() ? virtual_offset == 0
+ : std::prev(it)->upper() == virtual_offset;
}
return false;
}