From fa136a7ffbdeee5f8e1174b2d36c2e34c653a08a Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Mon, 18 Dec 2017 21:36:26 -0600 Subject: decompile sub_80AF438 - unref_sub_80B01B0 --- include/global.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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)) -- cgit v1.2.3