mirror of
https://github.com/curl/curl.git
synced 2026-07-23 08:37:16 +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
|
|
@ -88,7 +88,7 @@ static int onetest(CURL *curl, const char *url, const testparams *p)
|
|||
unsigned int replyselector;
|
||||
char urlbuf[256];
|
||||
|
||||
replyselector = p->flags & F_CONTENTRANGE? 1: 0;
|
||||
replyselector = (p->flags & F_CONTENTRANGE)? 1: 0;
|
||||
if(p->flags & F_HTTP416)
|
||||
replyselector += 2;
|
||||
msnprintf(urlbuf, sizeof(urlbuf), "%s%04u", url, replyselector);
|
||||
|
|
@ -96,7 +96,7 @@ static int onetest(CURL *curl, const char *url, const testparams *p)
|
|||
test_setopt(curl, CURLOPT_RESUME_FROM, (p->flags & F_RESUME)? 3: 0);
|
||||
test_setopt(curl, CURLOPT_RANGE, !(p->flags & F_RESUME)?
|
||||
"3-1000000": (char *) NULL);
|
||||
test_setopt(curl, CURLOPT_FAILONERROR, p->flags & F_FAIL? 1: 0);
|
||||
test_setopt(curl, CURLOPT_FAILONERROR, (p->flags & F_FAIL)? 1: 0);
|
||||
hasbody = 0;
|
||||
res = curl_easy_perform(curl);
|
||||
if(res != p->result) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue