mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-18 08:22:04 +00:00
mc: fix invalid range comparison (#37)
This commit is contained in:
parent
615216edeb
commit
85df3dcb7e
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
#include "mc.h"
|
#include "mc.h"
|
||||||
|
|
||||||
volatile security_carveout_t *get_carveout_by_id(unsigned int carveout) {
|
volatile security_carveout_t *get_carveout_by_id(unsigned int carveout) {
|
||||||
if (CARVEOUT_ID_MIN <= carveout <= CARVEOUT_ID_MAX) {
|
if (CARVEOUT_ID_MIN <= carveout && carveout <= CARVEOUT_ID_MAX) {
|
||||||
return (volatile security_carveout_t *)(MC_BASE + 0xC08ULL + 0x50 * (carveout - CARVEOUT_ID_MIN));
|
return (volatile security_carveout_t *)(MC_BASE + 0xC08ULL + 0x50 * (carveout - CARVEOUT_ID_MIN));
|
||||||
}
|
}
|
||||||
panic();
|
panic();
|
||||||
|
|
Loading…
Reference in a new issue