mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-08 05:01:44 +00:00
meso: fix sign-comparison warn on svc/interrupt flag compare
This commit is contained in:
parent
4617fec672
commit
423a05a1e9
1 changed files with 2 additions and 2 deletions
|
@ -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<u32>(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<u32>(m_irq_access_flags.GetCount()))) {
|
||||
m_irq_access_flags[id] = true;
|
||||
return true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue