Skip to content

Commit

Permalink
Add parentheses around MAX and MIN
Browse files Browse the repository at this point in the history
  • Loading branch information
lord8266 committed May 24, 2022
1 parent dacd904 commit 26e289e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/include/r_macros.h
Expand Up @@ -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
Expand Down

0 comments on commit 26e289e

Please sign in to comment.