mirror of
https://github.com/curl/curl.git
synced 2026-05-03 19:47:50 +03:00
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
This commit is contained in:
parent
7dbda156e6
commit
dd37639df7
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue