diff options
| author | 2020-08-26 20:11:56 -0400 | |
|---|---|---|
| committer | 2020-08-26 20:11:58 -0400 | |
| commit | d12d59f62a9e82e391c9b0058ccf869bddd699b2 (patch) | |
| tree | ad26e98508a08c3556d39ccdde5cf3ea3504c2ec /src | |
| parent | Merge pull request #4582 from lioncash/xbyak (diff) | |
| download | yuzu-d12d59f62a9e82e391c9b0058ccf869bddd699b2.tar.gz yuzu-d12d59f62a9e82e391c9b0058ccf869bddd699b2.tar.xz yuzu-d12d59f62a9e82e391c9b0058ccf869bddd699b2.zip | |
memory_manager: Make operator+ const qualified
This doesn't modify member state, so it can be marked as const.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/memory_manager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/memory_manager.h b/src/video_core/memory_manager.h index 533b415e9..52978acc4 100644 --- a/src/video_core/memory_manager.h +++ b/src/video_core/memory_manager.h | |||
| @@ -51,7 +51,7 @@ public: | |||
| 51 | return static_cast<VAddr>(state) << ShiftBits; | 51 | return static_cast<VAddr>(state) << ShiftBits; |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | constexpr PageEntry operator+(u64 offset) { | 54 | constexpr PageEntry operator+(u64 offset) const { |
| 55 | // If this is a reserved value, offsets do not apply | 55 | // If this is a reserved value, offsets do not apply |
| 56 | if (!IsValid()) { | 56 | if (!IsValid()) { |
| 57 | return *this; | 57 | return *this; |