aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-11 21:51:55 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-11 21:51:55 +0000
commit9d064a392732099187ef9e4dcc7c6bd3f9cfede1 (patch)
treebbc8e0455c2efd981a44bbd404cf37f9f71510e0 /lib
parentd6edcfb486aab6a0abf23bb658682419fe9d5efe (diff)
dl and ulspeed are now curl_off_t so typecast them to double when we
return their values
Diffstat (limited to 'lib')
-rw-r--r--lib/getinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c
index cef65579a..9e41d7f2d 100644
--- a/lib/getinfo.c
+++ b/lib/getinfo.c
@@ -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;