mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 15:15:46 +00:00
memory_manager: Make operator+ const qualified
This doesn't modify member state, so it can be marked as const.
This commit is contained in:
parent
531f3c9f94
commit
4ccecf6fec
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ public:
|
|||
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 (!IsValid()) {
|
||||
return *this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue