From 89193ed5181b03286eee18c974f8ee38ddc6733c Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Sun, 7 Feb 2021 11:53:56 +0100 Subject: ngtcp2: clarify calculation precedence As suggested by Codacy/cppcheck. Closes https://github.com/curl/curl/pull/6576 --- lib/vquic/ngtcp2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/vquic') diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c index ffc5b1076..fc756f805 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; -- cgit v1.2.1