diff options
Diffstat (limited to 'src/common/range_map.h')
| -rw-r--r-- | src/common/range_map.h | 6 |
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; |