diff options
author | Michael Kaufmann <mail@michael-kaufmann.ch> | 2021-08-10 10:00:51 +0200 |
---|---|---|
committer | Michael Kaufmann <mail@michael-kaufmann.ch> | 2021-08-10 22:39:16 +0200 |
commit | dd37639df712aa9915273b99dda11d3efb33fce0 (patch) | |
tree | 92ee775d509c244122aadcb9a354869ab9863259 /lib | |
parent | 7dbda156e6a82f874eec20e8dd6184167b1f131f (diff) | |
download | curl-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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/progress.c | 2 |
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 */ |