]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ngtcp2: clarify calculation precedence
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Sun, 7 Feb 2021 10:53:56 +0000 (11:53 +0100)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 10 Feb 2021 15:47:49 +0000 (16:47 +0100)
As suggested by Codacy/cppcheck.

Closes https://github.com/curl/curl/pull/6576

lib/vquic/ngtcp2.c

index ffc5b1076ff37a799a9b1b8aaaca1972b1c8a705..fc756f805220b63b6b59f5cca140257f14a89c88 100644 (file)
@@ -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;