summaryrefslogtreecommitdiff
path: root/src/common/range_map.h
diff options
context:
space:
mode:
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 79c7ef547..ab73993e3 100644
--- a/src/common/range_map.h
+++ b/src/common/range_map.h
@@ -38,12 +38,12 @@ public:
38 Map(address, address_end, null_value); 38 Map(address, address_end, null_value);
39 } 39 }
40 40
41 [[nodiscard]] size_t GetContinousSizeFrom(KeyTBase address) const { 41 [[nodiscard]] size_t GetContinuousSizeFrom(KeyTBase address) const {
42 const KeyT new_address = static_cast<KeyT>(address); 42 const KeyT new_address = static_cast<KeyT>(address);
43 if (new_address < 0) { 43 if (new_address < 0) {
44 return 0; 44 return 0;
45 } 45 }
46 return ContinousSizeInternal(new_address); 46 return ContinuousSizeInternal(new_address);
47 } 47 }
48 48
49 [[nodiscard]] ValueT GetValueAt(KeyT address) const { 49 [[nodiscard]] ValueT GetValueAt(KeyT address) const {
@@ -59,7 +59,7 @@ private:
59 using IteratorType = typename MapType::iterator; 59 using IteratorType = typename MapType::iterator;
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 ContinuousSizeInternal(KeyT address) const {
63 const auto it = GetFirstElementBeforeOrOn(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;