libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 7e69727f669aebf880e1dde98cb14a5166b8fb20
parent d5048c22857105d23364a1c783975a040d608143
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu,  6 Aug 2015 15:45:25 +0000

Correct MHD_MAX() and MHD_MIN() macros

Diffstat:
Msrc/microhttpd/internal.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h @@ -51,8 +51,8 @@ */ #define EXTRA_CHECKS MHD_NO -#define MHD_MAX(a,b) ((a)<(b)) ? (b) : (a) -#define MHD_MIN(a,b) ((a)<(b)) ? (a) : (b) +#define MHD_MAX(a,b) (((a)<(b)) ? (b) : (a)) +#define MHD_MIN(a,b) (((a)<(b)) ? (a) : (b)) /**