mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 04:11:18 +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;
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue