From a8df40082547d5757b4080751337beb3a0e9e14b Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 8 Mar 2023 09:46:38 -0700 Subject: [PATCH] kern: fix stray addressof operator --- .../libmesosphere/source/kern_k_light_condition_variable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libmesosphere/source/kern_k_light_condition_variable.cpp b/libraries/libmesosphere/source/kern_k_light_condition_variable.cpp index bf8cc8a2e..25b2b0b9e 100644 --- a/libraries/libmesosphere/source/kern_k_light_condition_variable.cpp +++ b/libraries/libmesosphere/source/kern_k_light_condition_variable.cpp @@ -51,7 +51,7 @@ namespace ams::kern { /* Sleep the thread. */ { - KScopedSchedulerLockAndSleep lk(&timer, owner, timeout); + KScopedSchedulerLockAndSleep lk(std::addressof(timer), owner, timeout); if (!allow_terminating_thread && owner->IsTerminationRequested()) { lk.CancelSleep();