diff options
author | bunnei <bunneidev@gmail.com> | 2022-09-06 02:42:24 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-10-19 04:13:34 +0200 |
commit | 47b8160666da8dcb679bb7cabe35a615a1786155 (patch) | |
tree | c22fd04d12cc19f0155feb98157dc90874e6456b /src/core/hle/kernel/k_page_buffer.cpp | |
parent | core: hle: result: Add GetInnerValue and Includes methods. (diff) | |
download | yuzu-47b8160666da8dcb679bb7cabe35a615a1786155.tar yuzu-47b8160666da8dcb679bb7cabe35a615a1786155.tar.gz yuzu-47b8160666da8dcb679bb7cabe35a615a1786155.tar.bz2 yuzu-47b8160666da8dcb679bb7cabe35a615a1786155.tar.lz yuzu-47b8160666da8dcb679bb7cabe35a615a1786155.tar.xz yuzu-47b8160666da8dcb679bb7cabe35a615a1786155.tar.zst yuzu-47b8160666da8dcb679bb7cabe35a615a1786155.zip |
Diffstat (limited to 'src/core/hle/kernel/k_page_buffer.cpp')
-rw-r--r-- | src/core/hle/kernel/k_page_buffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_page_buffer.cpp b/src/core/hle/kernel/k_page_buffer.cpp index 1a0bf4439..0c16dded4 100644 --- a/src/core/hle/kernel/k_page_buffer.cpp +++ b/src/core/hle/kernel/k_page_buffer.cpp @@ -12,7 +12,7 @@ namespace Kernel { KPageBuffer* KPageBuffer::FromPhysicalAddress(Core::System& system, PAddr phys_addr) { ASSERT(Common::IsAligned(phys_addr, PageSize)); - return reinterpret_cast<KPageBuffer*>(system.DeviceMemory().GetPointer(phys_addr)); + return system.DeviceMemory().GetPointer<KPageBuffer>(phys_addr); } } // namespace Kernel |