diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-11-19 08:50:28 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-11-19 09:20:29 -0500 |
| commit | 76ac234bf66a5cad7898056dcd33f52d2c38a232 (patch) | |
| tree | e8f6ab5b2f6bb76e4f85df713e429e17ccc4f885 /src/core/hle/kernel/shared_memory.h | |
| parent | f4722327059b3a618ea63539a31c4f5a16e14bd4 (diff) | |
kernel/shared_memory: Make GetPointer() take a std::size_t instead of a u32
Makes the interface nicer to use in terms of 64-bit code, as it makes it
less likely for one to get truncation warnings (and also makes sense in
the context of the rest of the interface where 64-bit types are used for
sizes and offsets
Diffstat (limited to 'src/core/hle/kernel/shared_memory.h')
| -rw-r--r-- | src/core/hle/kernel/shared_memory.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
