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
+++ b/src/os/win32/ngx_wsasend_chain.c
@@ -34,7 +34,7 @@ ngx_wsasend_chain(ngx_connection_t *c, n
 
     /* 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 @@ ngx_overlapped_wsasend_chain(ngx_connect
 
         /* 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;
         }