diff options
| -rw-r--r-- | src/core/hle/kernel/shared_memory.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/shared_memory.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/shared_memory.cpp b/src/core/hle/kernel/shared_memory.cpp index a016a86b6..214f0c9bf 100644 --- a/src/core/hle/kernel/shared_memory.cpp +++ b/src/core/hle/kernel/shared_memory.cpp | |||
| @@ -132,7 +132,7 @@ VMAPermission SharedMemory::ConvertPermissions(MemoryPermission permission) { | |||
| 132 | return static_cast<VMAPermission>(masked_permissions); | 132 | return static_cast<VMAPermission>(masked_permissions); |
| 133 | } | 133 | } |
| 134 | 134 | ||
| 135 | u8* SharedMemory::GetPointer(u32 offset) { | 135 | u8* SharedMemory::GetPointer(std::size_t offset) { |
| 136 | return backing_block->data() + backing_block_offset + offset; | 136 | return backing_block->data() + backing_block_offset + offset; |
| 137 | } | 137 | } |
| 138 | 138 | ||
diff --git a/src/core/hle/kernel/shared_memory.h b/src/core/hle/kernel/shared_memory.h index 9a7c189e8..7d7d6486d 100644 --- a/src/core/hle/kernel/shared_memory.h +++ b/src/core/hle/kernel/shared_memory.h | |||
| @@ -115,7 +115,7 @@ public: | |||
| 115 | * @param offset Offset from the start of the shared memory block to get pointer | 115 | * @param offset Offset from the start of the shared memory block to get pointer |
| 116 | * @return Pointer to the shared memory block from the specified offset | 116 | * @return Pointer to the shared memory block from the specified offset |
| 117 | */ | 117 | */ |
| 118 | u8* GetPointer(u32 offset = 0); | 118 | u8* GetPointer(std::size_t offset = 0); |
| 119 | 119 | ||
| 120 | private: | 120 | private: |
| 121 | explicit SharedMemory(KernelCore& kernel); | 121 | explicit SharedMemory(KernelCore& kernel); |