Skip to content

Commit

Permalink
ngtcp2: clarify calculation precedence
Browse files Browse the repository at this point in the history
As suggested by Codacy/cppcheck.

Closes #6576
  • Loading branch information
MarcelRaad committed Feb 10, 2021
1 parent 1636076 commit 89193ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vquic/ngtcp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 89193ed

Please sign in to comment.