summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authorcamthesaxman <cameronghall@cox.net>2017-12-18 21:36:26 -0600
committercamthesaxman <cameronghall@cox.net>2017-12-18 21:36:26 -0600
commitfa136a7ffbdeee5f8e1174b2d36c2e34c653a08a (patch)
tree9591b192ab5106cc7497e4b1f048b04f70c66695 /include/global.h
parentc47f80b4f25fb056ccc648eec72b825e6a647edd (diff)
decompile sub_80AF438 - unref_sub_80B01B0
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/global.h b/include/global.h
index 6670f3837..620806d1a 100644
--- a/include/global.h
+++ b/include/global.h
@@ -41,8 +41,8 @@ fndec\
#define POKEMON_NAME_LENGTH 10
#define OT_NAME_LENGTH 7
-#define min(a, b) (a >= b ? a : b)
-#define max(a, b) (a <= b ? a : b)
+#define min(a, b) ((a) <= (b) ? (a) : (b))
+#define max(a, b) ((a) >= (b) ? (a) : (b))
// why does GF hate 2d arrays
#define MULTI_DIM_ARR(x, dim, y) ((x) * dim + (y))