Mercurial > hg > nginx-quic
diff src/core/ngx_config.h @ 6008:b92d5a26d55f
Core: expose maximum values of time_t and ngx_int_t.
These are needed to detect overflows.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 17 Mar 2015 00:24:34 +0300 |
parents | 626f288fa5ed |
children | 5805301f990f |
line wrap: on
line diff
--- a/src/core/ngx_config.h +++ b/src/core/ngx_config.h @@ -85,8 +85,11 @@ typedef intptr_t ngx_flag_t; #if (NGX_PTR_SIZE == 4) #define NGX_INT_T_LEN NGX_INT32_LEN +#define NGX_MAX_INT_T_VALUE 2147483647 + #else #define NGX_INT_T_LEN NGX_INT64_LEN +#define NGX_MAX_INT_T_VALUE 9223372036854775807 #endif