changeset 6265:954b67727af3

Win32: fixed build with MinGW and MinGW-w64 gcc. This change fixes the "comparison between signed and unsigned integer expressions" warning, introduced in 5e6142609e48 (1.9.4).
author Kouhei Sutou <kou@cozmixng.org>
date Sat, 17 Oct 2015 21:41:02 +0900
parents 7ac57369036c
children dceb078b1156
files src/core/ngx_connection.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/ngx_connection.c
+++ b/src/core/ngx_connection.c
@@ -1175,7 +1175,7 @@ ngx_close_idle_connections(ngx_cycle_t *
 
         /* THREAD: lock */
 
-        if (c[i].fd != -1 && c[i].idle) {
+        if (c[i].fd != (ngx_socket_t) -1 && c[i].idle) {
             c[i].close = 1;
             c[i].read->handler(c[i].read);
         }