diff options
author | Liam <byteslice@airmail.cc> | 2023-03-07 18:01:07 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-03-13 03:09:09 +0100 |
commit | ac6cbb7134d71134e4beae91361a78fa68202c22 (patch) | |
tree | 19ac300007ee99c87138203809005fb708257b21 /src/core/hle/kernel/k_slab_heap.h | |
parent | kernel: convert KResourceLimit (diff) | |
download | yuzu-ac6cbb7134d71134e4beae91361a78fa68202c22.tar yuzu-ac6cbb7134d71134e4beae91361a78fa68202c22.tar.gz yuzu-ac6cbb7134d71134e4beae91361a78fa68202c22.tar.bz2 yuzu-ac6cbb7134d71134e4beae91361a78fa68202c22.tar.lz yuzu-ac6cbb7134d71134e4beae91361a78fa68202c22.tar.xz yuzu-ac6cbb7134d71134e4beae91361a78fa68202c22.tar.zst yuzu-ac6cbb7134d71134e4beae91361a78fa68202c22.zip |
Diffstat (limited to 'src/core/hle/kernel/k_slab_heap.h')
-rw-r--r-- | src/core/hle/kernel/k_slab_heap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_slab_heap.h b/src/core/hle/kernel/k_slab_heap.h index 68469b041..334afebb7 100644 --- a/src/core/hle/kernel/k_slab_heap.h +++ b/src/core/hle/kernel/k_slab_heap.h @@ -89,7 +89,8 @@ private: if (alloc_peak <= cur_peak) { break; } - } while (!Common::AtomicCompareAndSwap(&m_peak, alloc_peak, cur_peak, cur_peak)); + } while ( + !Common::AtomicCompareAndSwap(std::addressof(m_peak), alloc_peak, cur_peak, cur_peak)); } public: |