]> granicus.if.org Git - apache/commitdiff
Aye, it's bogus. Something very odd about short terniary results on
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 11 Oct 2001 14:04:11 +0000 (14:04 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 11 Oct 2001 14:04:11 +0000 (14:04 +0000)
  this C[++] compiler here, wants to promote to the conditition's type :-/

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91424 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy.c

index 464b140e01ca2e6fe3c6e575cb1e397121b928c9..618deea1b3799c35c0e8f5e9e44ddc624c6231b9 100644 (file)
@@ -141,7 +141,8 @@ static int proxy_detect(request_rec *r)
        if (!(r->parsed_uri.hostname
            && !strcasecmp(r->parsed_uri.scheme, ap_http_method(r))
            && ap_matches_request_vhost(r, r->parsed_uri.hostname,
-               r->parsed_uri.port_str ? r->parsed_uri.port : ap_default_port(r)))) {
+               (apr_port_t)(r->parsed_uri.port_str ? r->parsed_uri.port 
+                                                   : ap_default_port(r))))) {
            r->proxyreq = PROXYREQ_PROXY;
            r->uri = r->unparsed_uri;
            r->filename = apr_pstrcat(r->pool, "proxy:", r->uri, NULL);