comparison src/os/win32/ngx_wsasend_chain.c @ 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 a6e83ac70af9
children d91b98232e4c
comparison
equal deleted inserted replaced
5872:de7ec5eef6d2 5873:35b8e5e98508
32 return in; 32 return in;
33 } 33 }
34 34
35 /* the maximum limit size is the maximum u_long value - the page size */ 35 /* the maximum limit size is the maximum u_long value - the page size */
36 36
37 if (limit == 0 || limit > NGX_MAX_UINT32_VALUE - ngx_pagesize) { 37 if (limit == 0 || limit > (off_t) (NGX_MAX_UINT32_VALUE - ngx_pagesize)) {
38 limit = NGX_MAX_UINT32_VALUE - ngx_pagesize; 38 limit = NGX_MAX_UINT32_VALUE - ngx_pagesize;
39 } 39 }
40 40
41 send = 0; 41 send = 0;
42 42
154 154
155 /* post the overlapped WSASend() */ 155 /* post the overlapped WSASend() */
156 156
157 /* the maximum limit size is the maximum u_long value - the page size */ 157 /* the maximum limit size is the maximum u_long value - the page size */
158 158
159 if (limit == 0 || limit > NGX_MAX_UINT32_VALUE - ngx_pagesize) { 159 if (limit == 0 || limit > (off_t) (NGX_MAX_UINT32_VALUE - ngx_pagesize)) {
160 limit = NGX_MAX_UINT32_VALUE - ngx_pagesize; 160 limit = NGX_MAX_UINT32_VALUE - ngx_pagesize;
161 } 161 }
162 162
163 /* 163 /*
164 * WSABUFs must be 4-byte aligned otherwise 164 * WSABUFs must be 4-byte aligned otherwise