From: William A. Rowe Jr Date: Thu, 26 Jul 2001 16:36:40 +0000 (+0000) Subject: Terniaries are broken under MSVC, they never did resolve how to resolve X-Git-Tag: 2.0.22~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09324dea0d46e9da8bf7836f567b98cb3e48936a;p=thirdparty%2Fapache%2Fhttpd.git Terniaries are broken under MSVC, they never did resolve how to resolve the type of an obvious conversion like this one. Even casting the const to an apr_port_t doesn't solve it. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89730 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/listen.c b/server/listen.c index f0052ab13f5..dc9dc7de5bc 100644 --- a/server/listen.c +++ b/server/listen.c @@ -276,7 +276,7 @@ int ap_listen_open(process_rec *process, apr_port_t port) /* allocate a default listener if necessary */ if (ap_listeners == NULL) { - alloc_listener(process, NULL, port ? port : DEFAULT_HTTP_PORT); + alloc_listener(process, NULL, (apr_port_t)(port ? port : DEFAULT_HTTP_PORT)); } num_open = 0;