httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@worldgate.com>
Subject [PATCH] a couple of casts for msvc warnings
Date Sat, 10 Jan 1998 04:37:59 GMT
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);
         }
         else if (parm[0] == 'm' && parm[1] == 'x' &&
                  parm[2] == 'b' && parm[3] == '\0') {
-            result->max_bytes = atof(cp);
+            result->max_bytes = (float)atof(cp);
         }
         else if (parm[0] == 'l' && !strcmp(&parm[1], "evel")) {
-            result->level = atof(cp);
+            result->level = (float)atof(cp);
         }
         else if (!strcmp(parm, "charset")) {
             result->charset = cp;
@@ -741,7 +741,7 @@
                 set_mime_fields(&mime_info, &accept_info);
             }
             else if (!strncmp(buffer, "content-length:", 15)) {
-                mime_info.bytes = atof(body);
+                mime_info.bytes = (float)atof(body);
             }
             else if (!strncmp(buffer, "content-language:", 17)) {
                 mime_info.content_languages = do_languages_line(neg->pool,


Mime
View raw message