diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-11-11 23:52:26 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-11-11 23:56:01 -0800 |
commit | 7281dc6fdc4f345c9c1c7bcda20e3bef3003c140 (patch) | |
tree | ce78f1ac988287a61aa13c39f06cd7f76b112fc8 /src | |
parent | 72a0ce71285034853c1720b738db348fdcec5228 (diff) |
macro: enclose MIN/MAX macros in parens
Diffstat (limited to 'src')
-rw-r--r-- | src/rmd_macro.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rmd_macro.h b/src/rmd_macro.h index 2f1ac88..f124c0e 100644 --- a/src/rmd_macro.h +++ b/src/rmd_macro.h @@ -76,8 +76,8 @@ #define Y_UNIT_WIDTH 0x0010 #define UV_UNIT_WIDTH 0x0008 -#define MAX(a, b) ((a) < (b)) ? (b) : (a) -#define MIN(a, b) ((a) > (b)) ? (b) : (a) +#define MAX(a, b) (((a) < (b)) ? (b) : (a)) +#define MIN(a, b) (((a) > (b)) ? (b) : (a)) #endif |