From: Marcel Raad Date: Sun, 7 Feb 2021 10:53:56 +0000 (+0100) Subject: ngtcp2: clarify calculation precedence X-Git-Tag: curl-7_76_0~174 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89193ed5181b03286eee18c974f8ee38ddc6733c;p=thirdparty%2Fcurl.git ngtcp2: clarify calculation precedence As suggested by Codacy/cppcheck. Closes https://github.com/curl/curl/pull/6576 --- diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c index ffc5b1076f..fc756f8052 100644 --- a/lib/vquic/ngtcp2.c +++ b/lib/vquic/ngtcp2.c @@ -580,7 +580,7 @@ static int cb_recv_stream_data(ngtcp2_conn *tconn, uint32_t flags, { struct quicsocket *qs = (struct quicsocket *)user_data; ssize_t nconsumed; - int fin = flags & NGTCP2_STREAM_DATA_FLAG_FIN ? 1 : 0; + int fin = (flags & NGTCP2_STREAM_DATA_FLAG_FIN) ? 1 : 0; (void)offset; (void)stream_user_data;