From 7281dc6fdc4f345c9c1c7bcda20e3bef3003c140 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 11 Nov 2020 23:52:26 -0800 Subject: macro: enclose MIN/MAX macros in parens --- src/rmd_macro.h | 4 ++-- 1 file 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 -- cgit v1.2.3