mirror of
https://github.com/curl/curl.git
synced 2026-08-10 04:50:53 +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
|
|
@ -821,8 +821,10 @@ static size_t readback_part(curl_mimepart *part,
|
|||
struct curl_slist *hdr = (struct curl_slist *) part->state.ptr;
|
||||
switch(part->state.state) {
|
||||
case MIMESTATE_BEGIN:
|
||||
mimesetstate(&part->state, part->flags & MIME_BODY_ONLY? MIMESTATE_BODY:
|
||||
MIMESTATE_CURLHEADERS, part->curlheaders);
|
||||
mimesetstate(&part->state,
|
||||
(part->flags & MIME_BODY_ONLY)?
|
||||
MIMESTATE_BODY: MIMESTATE_CURLHEADERS,
|
||||
part->curlheaders);
|
||||
break;
|
||||
case MIMESTATE_USERHEADERS:
|
||||
if(!hdr) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue