From 9d064a392732099187ef9e4dcc7c6bd3f9cfede1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 11 Mar 2004 21:51:55 +0000 Subject: [PATCH] dl and ulspeed are now curl_off_t so typecast them to double when we return their values --- lib/getinfo.c | 4 ++-- 1 file 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;