Mercurial > hg > nginx
changeset 5873:35b8e5e98508
Win32: suppressed warnings by "-Werror=sign-compare".
author | Kouhei Sutou <kou@cozmixng.org> |
---|---|
date | Sat, 11 Oct 2014 21:09:29 +0900 |
parents | de7ec5eef6d2 |
children | 2aff40b3dea2 |
files | src/os/win32/ngx_wsasend_chain.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os/win32/ngx_wsasend_chain.c Sat Oct 11 20:56:35 2014 +0900 +++ b/src/os/win32/ngx_wsasend_chain.c Sat Oct 11 21:09:29 2014 +0900 @@ -34,7 +34,7 @@ /* the maximum limit size is the maximum u_long value - the page size */ - if (limit == 0 || limit > NGX_MAX_UINT32_VALUE - ngx_pagesize) { + if (limit == 0 || limit > (off_t) (NGX_MAX_UINT32_VALUE - ngx_pagesize)) { limit = NGX_MAX_UINT32_VALUE - ngx_pagesize; } @@ -156,7 +156,7 @@ /* the maximum limit size is the maximum u_long value - the page size */ - if (limit == 0 || limit > NGX_MAX_UINT32_VALUE - ngx_pagesize) { + if (limit == 0 || limit > (off_t) (NGX_MAX_UINT32_VALUE - ngx_pagesize)) { limit = NGX_MAX_UINT32_VALUE - ngx_pagesize; }