summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kaufmann <mail@michael-kaufmann.ch>2021-08-10 10:00:51 +0200
committerMichael Kaufmann <mail@michael-kaufmann.ch>2021-08-10 22:39:16 +0200
commitdd37639df712aa9915273b99dda11d3efb33fce0 (patch)
tree92ee775d509c244122aadcb9a354869ab9863259
parent7dbda156e6a82f874eec20e8dd6184167b1f131f (diff)
downloadcurl-dd37639df712aa9915273b99dda11d3efb33fce0.tar.gz
progress: fix a compile warning on some systems
lib/progress.c:380:40: warning: conversion to 'long double' from 'curl_off_t {aka long long int}' may alter its value [-Wconversion] Closes #7549
-rw-r--r--lib/progress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/progress.c b/lib/progress.c
index 4bcd615eb..62e61d45b 100644
--- a/lib/progress.c
+++ b/lib/progress.c
@@ -377,7 +377,7 @@ static curl_off_t trspeed(curl_off_t size, /* number of bytes */
{
if(us < 1)
return size * 1000000;
- return (curl_off_t)((long double)size/us * 1000000);
+ return (curl_off_t)((long double)size/(long double)us * 1000000);
}
/* returns TRUE if it's time to show the progress meter */