summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2020-04-17 21:04:11 -0400
committerGravatar GitHub2020-04-17 21:04:11 -0400
commit90ddb13372187482c2657c912d9fd1f8559da053 (patch)
tree4f40b57400d4698cc81dad385e27a15d837d683b /src
parentMerge pull request #3704 from lioncash/fmt (diff)
parentmemory/slab_heap: Make use of static_cast over reinterpret_cast (diff)
downloadyuzu-90ddb13372187482c2657c912d9fd1f8559da053.tar.gz
yuzu-90ddb13372187482c2657c912d9fd1f8559da053.tar.xz
yuzu-90ddb13372187482c2657c912d9fd1f8559da053.zip
Merge pull request #3711 from lioncash/cast
memory/slab_heap: Make use of static_cast over reinterpret_cast
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/memory/slab_heap.h4
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:
51 } 51 }
52 52
53 void Free(void* obj) { 53 void Free(void* obj) {
54 Node* node = reinterpret_cast<Node*>(obj); 54 Node* node = static_cast<Node*>(obj);
55 55
56 Node* cur_head = head.load(); 56 Node* cur_head = head.load();
57 do { 57 do {
@@ -145,7 +145,7 @@ public:
145 } 145 }
146 146
147 T* Allocate() { 147 T* Allocate() {
148 T* obj = reinterpret_cast<T*>(AllocateImpl()); 148 T* obj = static_cast<T*>(AllocateImpl());
149 if (obj != nullptr) { 149 if (obj != nullptr) {
150 new (obj) T(); 150 new (obj) T();
151 } 151 }