summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_auto_object.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-04-30 03:16:09 +0200
committerLiam <byteslice@airmail.cc>2023-04-30 03:52:26 +0200
commit1b5c87ab6aff8c53e4c27e916b282cce8073f118 (patch)
tree30ec292c07baeb9144677779a39681e8d62a0eed /src/core/hle/kernel/k_auto_object.h
parentMerge pull request #10082 from FernandoS27/the-testers-really-love-chocolate (diff)
downloadyuzu-1b5c87ab6aff8c53e4c27e916b282cce8073f118.tar
yuzu-1b5c87ab6aff8c53e4c27e916b282cce8073f118.tar.gz
yuzu-1b5c87ab6aff8c53e4c27e916b282cce8073f118.tar.bz2
yuzu-1b5c87ab6aff8c53e4c27e916b282cce8073f118.tar.lz
yuzu-1b5c87ab6aff8c53e4c27e916b282cce8073f118.tar.xz
yuzu-1b5c87ab6aff8c53e4c27e916b282cce8073f118.tar.zst
yuzu-1b5c87ab6aff8c53e4c27e916b282cce8073f118.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/k_auto_object.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_auto_object.h b/src/core/hle/kernel/k_auto_object.h
index 9b71fe371..f384b1568 100644
--- a/src/core/hle/kernel/k_auto_object.h
+++ b/src/core/hle/kernel/k_auto_object.h
@@ -182,8 +182,8 @@ public:
explicit KAutoObjectWithList(KernelCore& kernel) : KAutoObject(kernel) {}
static int Compare(const KAutoObjectWithList& lhs, const KAutoObjectWithList& rhs) {
- const u64 lid = lhs.GetId();
- const u64 rid = rhs.GetId();
+ const uintptr_t lid = reinterpret_cast<uintptr_t>(std::addressof(lhs));
+ const uintptr_t rid = reinterpret_cast<uintptr_t>(std::addressof(rhs));
if (lid < rid) {
return -1;