diff options
author | bunnei <bunneidev@gmail.com> | 2020-04-18 03:04:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-18 03:04:11 +0200 |
commit | 90ddb13372187482c2657c912d9fd1f8559da053 (patch) | |
tree | 4f40b57400d4698cc81dad385e27a15d837d683b | |
parent | Merge pull request #3704 from lioncash/fmt (diff) | |
parent | memory/slab_heap: Make use of static_cast over reinterpret_cast (diff) | |
download | yuzu-90ddb13372187482c2657c912d9fd1f8559da053.tar yuzu-90ddb13372187482c2657c912d9fd1f8559da053.tar.gz yuzu-90ddb13372187482c2657c912d9fd1f8559da053.tar.bz2 yuzu-90ddb13372187482c2657c912d9fd1f8559da053.tar.lz yuzu-90ddb13372187482c2657c912d9fd1f8559da053.tar.xz yuzu-90ddb13372187482c2657c912d9fd1f8559da053.tar.zst yuzu-90ddb13372187482c2657c912d9fd1f8559da053.zip |
-rw-r--r-- | src/core/hle/kernel/memory/slab_heap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/memory/slab_heap.h b/src/core/hle/kernel/memory/slab_heap.h index 049403e15..be95fc3f7 100644 --- a/src/core/hle/kernel/memory/slab_heap.h +++ b/src/core/hle/kernel/memory/slab_heap.h @@ -51,7 +51,7 @@ public: } void Free(void* obj) { - Node* node = reinterpret_cast<Node*>(obj); + Node* node = static_cast<Node*>(obj); Node* cur_head = head.load(); do { @@ -145,7 +145,7 @@ public: } T* Allocate() { - T* obj = reinterpret_cast<T*>(AllocateImpl()); + T* obj = static_cast<T*>(AllocateImpl()); if (obj != nullptr) { new (obj) T(); } |