yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

memory_manager: Make operator+ const qualified

This doesn't modify member state, so it can be marked as const.
This commit is contained in:
Lioncash 2020-08-26 20:11:56 -04:00
parent b8885aa03b
commit d12d59f62a
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ public:
return static_cast<VAddr>(state) << ShiftBits; return static_cast<VAddr>(state) << ShiftBits;
} }
constexpr PageEntry operator+(u64 offset) { constexpr PageEntry operator+(u64 offset) const {
// If this is a reserved value, offsets do not apply // If this is a reserved value, offsets do not apply
if (!IsValid()) { if (!IsValid()) {
return *this; return *this;