dl and ulspeed are now curl_off_t so typecast them to double when we
authorDaniel Stenberg <daniel@haxx.se>
Thu, 11 Mar 2004 21:51:55 +0000 (21:51 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 11 Mar 2004 21:51:55 +0000 (21:51 +0000)
return their values

lib/getinfo.c

index cef6557..9e41d7f 100644 (file)
@@ -141,10 +141,10 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...)
     *param_doublep = (double)data->progress.downloaded;
     break;
   case CURLINFO_SPEED_DOWNLOAD:
-    *param_doublep =  data->progress.dlspeed;
+    *param_doublep =  (double)data->progress.dlspeed;
     break;
   case CURLINFO_SPEED_UPLOAD:
-    *param_doublep = data->progress.ulspeed;
+    *param_doublep = (double)data->progress.ulspeed;
     break;
   case CURLINFO_SSL_VERIFYRESULT:
     *param_longp = data->set.ssl.certverifyresult;