From dd37639df712aa9915273b99dda11d3efb33fce0 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Tue, 10 Aug 2021 10:00:51 +0200 Subject: [PATCH] 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 --- lib/progress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/progress.c b/lib/progress.c index 4bcd615eba..62e61d45b4 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 */