httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Sutton <p...@eu.c2.net>
Subject Re: [PATCH] a couple of casts for msvc warnings
Date Sat, 10 Jan 1998 13:32:05 GMT
On Fri, 9 Jan 1998, Marc Slemko wrote:
> Index: mod_negotiation.c
> ===================================================================
> RCS file: /export/home/cvs/apachen/src/modules/standard/mod_negotiation.c,v
> retrieving revision 1.63
> diff -u -r1.63 mod_negotiation.c
> --- mod_negotiation.c	1998/01/07 16:46:54	1.63
> +++ mod_negotiation.c	1998/01/10 04:36:20
> @@ -371,14 +371,14 @@
>  
>          if (parm[0] == 'q'
>              && (parm[1] == '\0' || (parm[1] == 's' && parm[2] == '\0')))
{
> -            result->quality = atof(cp);
> +            result->quality  = (float)atof(cp);

+1 for this patch. It removes the warnings on Win32 builds. I'm still not
sure why bytes (content length) and max_bytes are floats, though.

//pcs


Mime
View raw message