From 6b3dde7fe62ea5a557fd1fd323fac2bcd0c2e9be Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Sat, 11 May 2019 14:51:24 +0200 Subject: 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 --- tests/libtest/lib1156.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/libtest') diff --git a/tests/libtest/lib1156.c b/tests/libtest/lib1156.c index cb8878c21..f4385b26a 100644 --- a/tests/libtest/lib1156.c +++ b/tests/libtest/lib1156.c @@ -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) { -- cgit v1.2.3