From: Takashi Sato Date: Tue, 29 Dec 2009 12:56:44 +0000 (+0000) Subject: Add parentheses to min max macro functions to avoid future bugs. X-Git-Tag: 2.3.5~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0f0d5d80b75f0279f3a7dcf7ad9a5eeb00757dc;p=thirdparty%2Fapache%2Fhttpd.git Add parentheses to min max macro functions to avoid future bugs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@894374 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/ab.c b/support/ab.c index 18a55029d2f..734176596fc 100644 --- a/support/ab.c +++ b/support/ab.c @@ -270,8 +270,8 @@ struct data { apr_interval_time_t time; /* time for connection */ }; -#define ap_min(a,b) ((a)<(b))?(a):(b) -#define ap_max(a,b) ((a)>(b))?(a):(b) +#define ap_min(a,b) (((a)<(b))?(a):(b)) +#define ap_max(a,b) (((a)>(b))?(a):(b)) #define ap_round_ms(a) ((apr_time_t)((a) + 500)/1000) #define ap_double_ms(a) ((double)(a)/1000.0) #define MAX_CONCURRENCY 20000