From beb2a881cd6e55b6a5c2caef7a588fd37e6ca80c Mon Sep 17 00:00:00 2001 From: Wolfvak Date: Wed, 9 Oct 2019 22:31:09 -0300 Subject: [PATCH] fix compilation warning due to ternary operator results having differing signedness --- arm9/source/godmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm9/source/godmode.c b/arm9/source/godmode.c index af6254a..8aab7fb 100644 --- a/arm9/source/godmode.c +++ b/arm9/source/godmode.c @@ -2565,7 +2565,7 @@ u32 GodMode(int entrypoint) { u32 n_opt = 0; int poweroff = ++n_opt; int reboot = ++n_opt; - int brick = (HID_ReadState() & BUTTON_R1) ? ++n_opt : -1; + int brick = (HID_ReadState() & BUTTON_R1) ? ++n_opt : 0; int scripts = ++n_opt; int payloads = ++n_opt; int more = ++n_opt;