Add parentheses around MAX and MIN

This commit is contained in:
Vishwa Pravin 2022-05-24 13:49:13 +05:30
parent dacd904f21
commit 26e289eb9e

View file

@ -76,11 +76,11 @@
#define FREE(a) if(a) free(a)
#endif
#ifndef MIN
#define MIN(a,b) ((a)>(b))?(b):(a)
#define MIN(a,b) (((a)>(b))?(b):(a))
#endif
#ifndef MAX
#define MAX(a,b) ((b)>(a))?(b):(a)
#define MAX(a,b) (((b)>(a))?(b):(a))
#endif
#ifdef DEBUG