diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-01-19 12:36:36 -0500 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2021-01-19 12:36:36 -0500 |
commit | 305ebdbc4a41960faa4fdde2422b443036f1edad (patch) | |
tree | a5ec3791168bf10c087fdfbb0ef4101f4f9b3794 /include | |
parent | cf9f8d01c513f13b014da3fe3995aef3071e542b (diff) |
Parentheses for GET_UNOWN_LETTER
Diffstat (limited to 'include')
-rw-r--r-- | include/pokemon.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/pokemon.h b/include/pokemon.h index 0320da1f2..0ff635a3f 100644 --- a/include/pokemon.h +++ b/include/pokemon.h @@ -240,11 +240,11 @@ struct Evolution #define NUM_UNOWN_FORMS 28 -#define GET_UNOWN_LETTER(personality) (( \ - ((personality & 0x03000000) >> 18) \ - | ((personality & 0x00030000) >> 12) \ - | ((personality & 0x00000300) >> 6) \ - | ((personality & 0x00000003) >> 0) \ +#define GET_UNOWN_LETTER(personality) (( \ + (((personality) & 0x03000000) >> 18) \ + | (((personality) & 0x00030000) >> 12) \ + | (((personality) & 0x00000300) >> 6) \ + | (((personality) & 0x00000003) >> 0) \ ) % NUM_UNOWN_FORMS) extern u8 gPlayerPartyCount; |