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:
Marcel Raad 2019-05-11 14:51:24 +02:00
parent 5f8b9fe81d
commit 6b3dde7fe6
No known key found for this signature in database
GPG key ID: FE4D8BC5EE1701DD
7 changed files with 15 additions and 13 deletions

View file

@ -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) {