1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

ngtcp2: clarify calculation precedence

As suggested by Codacy/cppcheck.

Closes https://github.com/curl/curl/pull/6576
This commit is contained in:
Marcel Raad 2021-02-07 11:53:56 +01:00
parent 1636076e70
commit 89193ed518
No known key found for this signature in database
GPG Key ID: 33C416EFAE4D6F02

View 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;