aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/k_auto_object.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-05-03 09:07:19 -0700
committerGitHub <noreply@github.com>2023-05-03 09:07:19 -0700
commit737e1ca1018cd5e5be03095cab6206ae6f653136 (patch)
treecde86ea87ab9eb495f47307b5ae58b35608066ee /src/core/hle/kernel/k_auto_object.h
parentffeb5cdd8df31dac9744845c7146d7364c843b9c (diff)
parent1b5c87ab6aff8c53e4c27e916b282cce8073f118 (diff)
Merge pull request #10117 from liamwhite/sync-register
kernel: match calls to Register and Unregister
Diffstat (limited to 'src/core/hle/kernel/k_auto_object.h')
-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;