summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authorPokeCodec <67983839+PokeCodec@users.noreply.github.com>2020-09-04 20:41:29 -0400
committerPokeCodec <67983839+PokeCodec@users.noreply.github.com>2020-09-04 20:41:29 -0400
commitda582d5258703eb52d8cadb4cbaef4ee7031b833 (patch)
treebf0a97ece42a2c69063e8225770da88ab045ecbe /include/global.h
parent99448002e1e393e347b19e4d519f658d13438e3f (diff)
Make JOY Macros match
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/global.h b/include/global.h
index 08988eac7..8c5167041 100644
--- a/include/global.h
+++ b/include/global.h
@@ -99,7 +99,7 @@
#define T2_READ_PTR(ptr) (void*) T2_READ_32(ptr)
// Macros for checking the joypad
-#define TEST_BUTTON(field, button) ({(field) & (button);})
+#define TEST_BUTTON(field, button) ((field) & (button))
#define JOY_NEW(button) TEST_BUTTON(gMain.newKeys, button)
#define JOY_HELD(button) TEST_BUTTON(gMain.heldKeys, button)
#define JOY_HELD_RAW(button) TEST_BUTTON(gMain.heldKeysRaw, button)