diff options
| author | Liam <byteslice@airmail.cc> | 2023-04-29 21:16:09 -0400 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2023-04-29 21:52:26 -0400 |
| commit | 1b5c87ab6aff8c53e4c27e916b282cce8073f118 (patch) | |
| tree | 30ec292c07baeb9144677779a39681e8d62a0eed /src/core/hle/kernel/k_auto_object.h | |
| parent | fe57f3967639616142889bf1b638117ca6c879cf (diff) | |
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.h | 4 |
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; |
