From 8435f6c24ee4384cedccabc8f6af3d64baac60d8 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/libmesosphere/include/mesosphere/kern_k_capabilities.hpp b/libmesosphere/include/mesosphere/kern_k_capabilities.hpp index 7b5a93dc..7c2f5dbc 100644 --- a/libmesosphere/include/mesosphere/kern_k_capabilities.hpp +++ b/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 {