summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-11-19 14:50:28 +0100
committerLioncash <mathew1800@gmail.com>2018-11-19 15:20:29 +0100
commit76ac234bf66a5cad7898056dcd33f52d2c38a232 (patch)
treee8f6ab5b2f6bb76e4f85df713e429e17ccc4f885 /src/core/hle/kernel
parentkernel/shared_memory: Make data members private (diff)
downloadyuzu-76ac234bf66a5cad7898056dcd33f52d2c38a232.tar
yuzu-76ac234bf66a5cad7898056dcd33f52d2c38a232.tar.gz
yuzu-76ac234bf66a5cad7898056dcd33f52d2c38a232.tar.bz2
yuzu-76ac234bf66a5cad7898056dcd33f52d2c38a232.tar.lz
yuzu-76ac234bf66a5cad7898056dcd33f52d2c38a232.tar.xz
yuzu-76ac234bf66a5cad7898056dcd33f52d2c38a232.tar.zst
yuzu-76ac234bf66a5cad7898056dcd33f52d2c38a232.zip
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/shared_memory.cpp2
-rw-r--r--src/core/hle/kernel/shared_memory.h2
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) {
return static_cast<VMAPermission>(masked_permissions);
}
-u8* SharedMemory::GetPointer(u32 offset) {
+u8* SharedMemory::GetPointer(std::size_t offset) {
return backing_block->data() + backing_block_offset + offset;
}
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:
* @param offset Offset from the start of the shared memory block to get pointer
* @return Pointer to the shared memory block from the specified offset
*/
- u8* GetPointer(u32 offset = 0);
+ u8* GetPointer(std::size_t offset = 0);
private:
explicit SharedMemory(KernelCore& kernel);