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 --- lib/easy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/easy.c') diff --git a/lib/easy.c b/lib/easy.c index 40be38220..9fc33ccb2 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -451,8 +451,8 @@ static int events_socket(struct Curl_easy *easy, /* easy handle */ m->socket.revents = 0; ev->list = m; infof(easy, "socket cb: socket %d ADDED as %s%s\n", s, - what&CURL_POLL_IN?"IN":"", - what&CURL_POLL_OUT?"OUT":""); + (what&CURL_POLL_IN)?"IN":"", + (what&CURL_POLL_OUT)?"OUT":""); } else return CURLE_OUT_OF_MEMORY; -- cgit v1.2.3