diff options
| author | 2022-12-24 19:19:41 -0500 | |
|---|---|---|
| committer | 2023-01-01 16:43:58 -0500 | |
| commit | d09aa0182f18d1ac338ab47009b42fdeb67497a8 (patch) | |
| tree | 1b3ae726f7aaa465b30fba795cfca0ae88d2140b /src/common | |
| parent | Rasterizer: Setup skeleton for Host Conditional rendering (diff) | |
| download | yuzu-d09aa0182f18d1ac338ab47009b42fdeb67497a8.tar.gz yuzu-d09aa0182f18d1ac338ab47009b42fdeb67497a8.tar.xz yuzu-d09aa0182f18d1ac338ab47009b42fdeb67497a8.zip | |
MacroHLE: Final cleanup and fixes.
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/range_map.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/range_map.h b/src/common/range_map.h index 993e21643..051e713a7 100644 --- a/src/common/range_map.h +++ b/src/common/range_map.h | |||
| @@ -13,8 +13,8 @@ namespace Common { | |||
| 13 | template <typename KeyTBase, typename ValueT> | 13 | template <typename KeyTBase, typename ValueT> |
| 14 | class RangeMap { | 14 | class RangeMap { |
| 15 | private: | 15 | private: |
| 16 | using KeyT = std::conditional_t<std::is_signed_v<KeyTBase>, typename KeyTBase, | 16 | using KeyT = |
| 17 | std::make_signed_t<KeyTBase>>; | 17 | std::conditional_t<std::is_signed_v<KeyTBase>, KeyTBase, std::make_signed_t<KeyTBase>>; |
| 18 | 18 | ||
| 19 | public: | 19 | public: |
| 20 | explicit RangeMap(ValueT null_value_) : null_value{null_value_} { | 20 | explicit RangeMap(ValueT null_value_) : null_value{null_value_} { |
| @@ -56,8 +56,8 @@ public: | |||
| 56 | 56 | ||
| 57 | private: | 57 | private: |
| 58 | using MapType = std::map<KeyT, ValueT>; | 58 | using MapType = std::map<KeyT, ValueT>; |
| 59 | using IteratorType = MapType::iterator; | 59 | using IteratorType = typename MapType::iterator; |
| 60 | using ConstIteratorType = 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 = GetFirstElemnentBeforeOrOn(address); |