summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 }