fs: fully parenthesize MIN and MAX macros

Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
Juha Niskanen
2020-12-08 18:29:58 +02:00
committed by Xiang Xiao
parent 33125e929c
commit cd41ed9b6d
6 changed files with 15 additions and 44 deletions
+2 -2
View File
@@ -191,11 +191,11 @@
/* Quasi-standard definitions */
#ifndef MIN
# define MIN(a,b) (a < b ? a : b)
# 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
/****************************************************************************