(MIN, MAX): Fix insufficiently parenthesized macro expansion.
This commit is contained in:
parent
25c9f2c66f
commit
2dcf1fd1c8
1 changed files with 2 additions and 2 deletions
|
@ -39,8 +39,8 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#define MAX(a,b) (a > b ? a : b)
|
#define MAX(a,b) ((a) > (b) ? (a) : (b))
|
||||||
#define MIN(a,b) (a < b ? a : b)
|
#define MIN(a,b) ((a) < (b) ? (a) : (b))
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
typedef unsigned char u_char;
|
typedef unsigned char u_char;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue