mirror of
https://github.com/curl/curl.git
synced 2026-07-22 19:17:17 +03:00
prevent warning with comparison between signed and unsigned
This commit is contained in:
parent
a6d4d3eeac
commit
fe46572f2b
1 changed files with 1 additions and 1 deletions
|
|
@ -328,7 +328,7 @@ int Curl_pgrsUpdate(struct connectdata *conn)
|
|||
curl_off_t amount = data->progress.speeder[nowindex]-
|
||||
data->progress.speeder[checkindex];
|
||||
|
||||
if(amount > 0xffffffff/1000)
|
||||
if(amount > 4294967 /* 0xffffffff/1000 */)
|
||||
/* the 'amount' value is bigger than would fit in 32 bits if
|
||||
multiplied with 1000, so we use the double math for this */
|
||||
data->progress.current_speed = (curl_off_t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue