summaryrefslogtreecommitdiff
path: root/src/common/range_map.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2023-01-03 10:01:25 -0500
committerGravatar Fernando Sahmkow2023-01-04 14:39:42 -0500
commita0c697124ced080f58866825e2e323e8682bbd7f (patch)
tree73830fc46134be10d7feffc3da11aa9f0ea58ffb /src/common/range_map.h
parentTexture Cache: Implement async texture downloads. (diff)
downloadyuzu-a0c697124ced080f58866825e2e323e8682bbd7f.tar.gz
yuzu-a0c697124ced080f58866825e2e323e8682bbd7f.tar.xz
yuzu-a0c697124ced080f58866825e2e323e8682bbd7f.zip
Video_core: Address feedback
Diffstat (limited to 'src/common/range_map.h')
-rw-r--r--src/common/range_map.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/range_map.h b/src/common/range_map.h
index 051e713a7..79c7ef547 100644
--- a/src/common/range_map.h
+++ b/src/common/range_map.h
@@ -60,7 +60,7 @@ private:
60 using ConstIteratorType = typename MapType::const_iterator; 60 using ConstIteratorType = typename MapType::const_iterator;
61 61
62 size_t ContinousSizeInternal(KeyT address) const { 62 size_t ContinousSizeInternal(KeyT address) const {
63 const auto it = GetFirstElemnentBeforeOrOn(address); 63 const auto it = GetFirstElementBeforeOrOn(address);
64 if (it == container.end() || it->second == null_value) { 64 if (it == container.end() || it->second == null_value) {
65 return 0; 65 return 0;
66 } 66 }
@@ -72,14 +72,14 @@ private:
72 } 72 }
73 73
74 ValueT GetValueInternal(KeyT address) const { 74 ValueT GetValueInternal(KeyT address) const {
75 const auto it = GetFirstElemnentBeforeOrOn(address); 75 const auto it = GetFirstElementBeforeOrOn(address);
76 if (it == container.end()) { 76 if (it == container.end()) {
77 return null_value; 77 return null_value;
78 } 78 }
79 return it->second; 79 return it->second;
80 } 80 }
81 81
82 ConstIteratorType GetFirstElemnentBeforeOrOn(KeyT address) const { 82 ConstIteratorType GetFirstElementBeforeOrOn(KeyT address) const {
83 auto it = container.lower_bound(address); 83 auto it = container.lower_bound(address);
84 if (it == container.begin()) { 84 if (it == container.begin()) {
85 return it; 85 return it;