1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-18 08:22:04 +00:00

meso: fix sign-comparison warn on svc/interrupt flag compare

This commit is contained in:
Michael Scire 2024-09-01 16:27:01 -07:00
parent 4617fec672
commit 423a05a1e9

View file

@ -192,7 +192,7 @@ namespace ams::kern {
u32 m_program_type; u32 m_program_type;
private: private:
constexpr bool SetSvcAllowed(u32 id) { constexpr bool SetSvcAllowed(u32 id) {
if (AMS_LIKELY(id < m_svc_access_flags.GetCount())) { if (AMS_LIKELY(id < static_cast<u32>(m_svc_access_flags.GetCount()))) {
m_svc_access_flags[id] = true; m_svc_access_flags[id] = true;
return true; return true;
} else { } else {
@ -201,7 +201,7 @@ namespace ams::kern {
} }
constexpr bool SetInterruptPermitted(u32 id) { constexpr bool SetInterruptPermitted(u32 id) {
if (AMS_LIKELY(id < m_irq_access_flags.GetCount())) { if (AMS_LIKELY(id < static_cast<u32>(m_irq_access_flags.GetCount()))) {
m_irq_access_flags[id] = true; m_irq_access_flags[id] = true;
return true; return true;
} else { } else {