commit | db4e43c225429376abaa36f9eb6f537402f0c6db | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Wed Dec 13 15:06:46 2006 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Wed Dec 13 15:06:46 2006 +0000 |
tree | 8079136a2f3460d9cd124f543acae1a3103c2a5f | |
parent | b6ef94f49b2073d21a511eaadf11c5ef076f9f87 [diff] [blame] |
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 89937ef..359a736 100644 --- a/src/http/ngx_http_upstream_round_robin.c +++ b/src/http/ngx_http_upstream_round_robin.c
@@ -71,7 +71,7 @@ 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) {