aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKouhei Sutou <kou@cozmixng.org>2015-10-17 21:41:02 +0900
committerKouhei Sutou <kou@cozmixng.org>2015-10-17 21:41:02 +0900
commit67614b3aa39250c99d0c03fad9ae3e7db4c6a7ab (patch)
treefd7f9b694e97dc0ec77d7f25b5bb8205b526aa17
parent582911c9c28ab7e0cdd203edd0948246b9e582b3 (diff)
downloadnginx-67614b3aa39250c99d0c03fad9ae3e7db4c6a7ab.tar.gz
nginx-67614b3aa39250c99d0c03fad9ae3e7db4c6a7ab.zip
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).
-rw-r--r--src/core/ngx_connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c
index 9f2675b88..0c19d5da6 100644
--- a/src/core/ngx_connection.c
+++ b/src/core/ngx_connection.c
@@ -1175,7 +1175,7 @@ ngx_close_idle_connections(ngx_cycle_t *cycle)
/* 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);
}