mirror of
https://github.com/curl/curl.git
synced 2026-08-25 11:13: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
|
|
@ -331,9 +331,9 @@ static int waitperform(struct connectdata *conn, int timeout_ms)
|
|||
/* move through the descriptors and ask for processing on them */
|
||||
for(i = 0; i < num; i++)
|
||||
ares_process_fd((ares_channel)data->state.resolver,
|
||||
pfd[i].revents & (POLLRDNORM|POLLIN)?
|
||||
(pfd[i].revents & (POLLRDNORM|POLLIN))?
|
||||
pfd[i].fd:ARES_SOCKET_BAD,
|
||||
pfd[i].revents & (POLLWRNORM|POLLOUT)?
|
||||
(pfd[i].revents & (POLLWRNORM|POLLOUT))?
|
||||
pfd[i].fd:ARES_SOCKET_BAD);
|
||||
}
|
||||
return nfds;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue