From 050f74b751c10eeb2491ec6509d0508a7e690209 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Fri, 5 Jul 2013 11:42:25 +0400 Subject: Make macros safe. --- src/core/ngx_config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/ngx_config.h b/src/core/ngx_config.h index b0cb17fca..1da71f8d1 100644 --- a/src/core/ngx_config.h +++ b/src/core/ngx_config.h @@ -80,8 +80,8 @@ typedef uintptr_t ngx_uint_t; typedef intptr_t ngx_flag_t; -#define NGX_INT32_LEN sizeof("-2147483648") - 1 -#define NGX_INT64_LEN sizeof("-9223372036854775808") - 1 +#define NGX_INT32_LEN (sizeof("-2147483648") - 1) +#define NGX_INT64_LEN (sizeof("-9223372036854775808") - 1) #if (NGX_PTR_SIZE == 4) #define NGX_INT_T_LEN NGX_INT32_LEN -- cgit