From db4e43c225429376abaa36f9eb6f537402f0c6db Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 13 Dec 2006 15:06:46 +0000 Subject: [PATCH] fix msvc build failure --- src/http/ngx_http_upstream_round_robin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {