]> git.kaiwu.me - nginx.git/commitdiff
Win32: fixed build with MinGW and MinGW-w64 gcc.
authorKouhei Sutou <kou@cozmixng.org>
Sat, 17 Oct 2015 12:41:02 +0000 (21:41 +0900)
committerKouhei Sutou <kou@cozmixng.org>
Sat, 17 Oct 2015 12:41:02 +0000 (21:41 +0900)
This change fixes the "comparison between signed and unsigned integer
expressions" warning, introduced in 5e6142609e48 (1.9.4).

src/core/ngx_connection.c

index 9f2675b886d3e03a64e90f9379ba5cf09fb223c3..0c19d5da6cb555c3eecb03f75a026207f69ce7c0 100644 (file)
@@ -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);
         }