From 2986505bb64c86631f20de90487ee535e20cd9ae Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Wed, 23 Jan 2019 11:55:09 +0100 Subject: [PATCH] Fix an annoying warning in Xcode. --- libhb/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libhb/common.h b/libhb/common.h index 1cdee684e..550c021cd 100644 --- a/libhb/common.h +++ b/libhb/common.h @@ -55,10 +55,10 @@ #endif #ifndef MIN -#define MIN( a, b ) ( (a) > (b) ? (b) : (a) ) +#define MIN(a,b) (((a)<(b))?(a):(b)) #endif #ifndef MAX -#define MAX( a, b ) ( (a) > (b) ? (a) : (b) ) +#define MAX(a,b) (((a)>(b))?(a):(b)) #endif #ifndef ABS #define ABS(a) ((a) > 0 ? (a) : (-(a))) -- 2.40.0