From: Igor Sysoev Date: Wed, 13 Dec 2006 15:06:46 +0000 (+0000) Subject: fix msvc build failure X-Git-Tag: release-0.5.3~1 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=db4e43c225429376abaa36f9eb6f537402f0c6db;p=nginx.git fix msvc build failure --- diff --git a/src/http/ngx_http_upstream_round_robin.c b/src/http/ngx_http_upstream_round_robin.c index 89937efde..359a73624 100644 --- a/src/http/ngx_http_upstream_round_robin.c +++ b/src/http/ngx_http_upstream_round_robin.c @@ -71,7 +71,7 @@ ngx_http_upstream_init_round_robin(ngx_conf_t *cf, ngx_memzero(&u, sizeof(ngx_url_t)); u.host = us->host; - u.port = us->port ? us->port : us->default_port; + u.port = (in_port_t) (us->port ? us->port : us->default_port); if (ngx_inet_resolve_host(cf, &u) != NGX_OK) { if (u.err) {