mirror of
https://github.com/curl/curl.git
synced 2026-05-30 23:17:32 +03:00
build: fix "clarify calculation precedence" warnings
Codacy/CppCheck warns about this. Consistently use parentheses as we already do in some places to silence the warning. Closes https://github.com/curl/curl/pull/3866
This commit is contained in:
parent
5f8b9fe81d
commit
6b3dde7fe6
7 changed files with 15 additions and 13 deletions
|
|
@ -564,9 +564,9 @@ int Curl_pgrsUpdate(struct connectdata *conn)
|
|||
|
||||
/* Get the total amount of data expected to get transferred */
|
||||
total_expected_transfer =
|
||||
(data->progress.flags & PGRS_UL_SIZE_KNOWN?
|
||||
((data->progress.flags & PGRS_UL_SIZE_KNOWN)?
|
||||
data->progress.size_ul:data->progress.uploaded)+
|
||||
(data->progress.flags & PGRS_DL_SIZE_KNOWN?
|
||||
((data->progress.flags & PGRS_DL_SIZE_KNOWN)?
|
||||
data->progress.size_dl:data->progress.downloaded);
|
||||
|
||||
/* We have transferred this much so far */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue