# HG changeset patch # User Kouhei Sutou # Date 1445085662 -32400 # Node ID 954b67727af32a2cfc5eef9ceb88ad1bbd6b2f25 # Parent 7ac57369036c712844e65671c5596d7ee1b54b4e 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). diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c --- 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); }