summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2021-02-07 11:53:56 +0100
committerMarcel Raad <Marcel.Raad@teamviewer.com>2021-02-10 16:47:49 +0100
commit89193ed5181b03286eee18c974f8ee38ddc6733c (patch)
treeab918b2cca1d51cb3b36a6fba3cb5b34539c34be
parent1636076e70067dbe03540c5c22ca86ac176c3391 (diff)
downloadcurl-89193ed5181b03286eee18c974f8ee38ddc6733c.tar.gz
ngtcp2: clarify calculation precedence
As suggested by Codacy/cppcheck. Closes https://github.com/curl/curl/pull/6576
-rw-r--r--lib/vquic/ngtcp2.c2
1 files changed, 1 insertions, 1 deletions
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;