summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-04-18 01:38:57 +0200
committerLioncash <mathew1800@gmail.com>2020-04-18 01:38:59 +0200
commit7e585bce28fb00cc28be07258429a688295c7433 (patch)
tree23099f8514c99ae1cfb5028d54dda03e95e72238 /src/core/hle/kernel
parentMerge pull request #3666 from bunnei/new-vmm (diff)
downloadyuzu-7e585bce28fb00cc28be07258429a688295c7433.tar
yuzu-7e585bce28fb00cc28be07258429a688295c7433.tar.gz
yuzu-7e585bce28fb00cc28be07258429a688295c7433.tar.bz2
yuzu-7e585bce28fb00cc28be07258429a688295c7433.tar.lz
yuzu-7e585bce28fb00cc28be07258429a688295c7433.tar.xz
yuzu-7e585bce28fb00cc28be07258429a688295c7433.tar.zst
yuzu-7e585bce28fb00cc28be07258429a688295c7433.zip
Diffstat (limited to 'src/core/hle/kernel')
-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:
}
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();
}