Merge pull request #60 from lord8266/max

Add parentheses around MAX and MIN
This commit is contained in:
Alexandre Dulaunoy 2022-05-24 22:23:24 +02:00 committed by GitHub
commit 36fd5b72c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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