From 423a05a1e90bf711f724b8d2a723dbbb5e0d5281 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sun, 1 Sep 2024 16:27:01 -0700 Subject: [PATCH] meso: fix sign-comparison warn on svc/interrupt flag compare --- .../libmesosphere/include/mesosphere/kern_k_capabilities.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/libmesosphere/include/mesosphere/kern_k_capabilities.hpp b/libraries/libmesosphere/include/mesosphere/kern_k_capabilities.hpp index 7b5a93dcc..7c2f5dbcd 100644 --- a/libraries/libmesosphere/include/mesosphere/kern_k_capabilities.hpp +++ b/libraries/libmesosphere/include/mesosphere/kern_k_capabilities.hpp @@ -192,7 +192,7 @@ namespace ams::kern { u32 m_program_type; private: constexpr bool SetSvcAllowed(u32 id) { - if (AMS_LIKELY(id < m_svc_access_flags.GetCount())) { + if (AMS_LIKELY(id < static_cast(m_svc_access_flags.GetCount()))) { m_svc_access_flags[id] = true; return true; } else { @@ -201,7 +201,7 @@ namespace ams::kern { } constexpr bool SetInterruptPermitted(u32 id) { - if (AMS_LIKELY(id < m_irq_access_flags.GetCount())) { + if (AMS_LIKELY(id < static_cast(m_irq_access_flags.GetCount()))) { m_irq_access_flags[id] = true; return true; } else {