definitions: unify MAX and MIN macro definitions

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko
2022-03-16 12:13:12 +01:00
committed by Xiang Xiao
parent b207387d48
commit 566be8c7b1
13 changed files with 23 additions and 23 deletions

View File

@@ -121,7 +121,7 @@
/* Get the larger value */
#ifndef MAX
# define MAX(a,b) (a > b ? a : b)
# define MAX(a,b) ((a) > (b) ? (a) : (b))
#endif
/****************************************************************************