diff --git a/lib/ngtcp2_conn.c b/lib/ngtcp2_conn.c index afc9d71e19cf0a5398419433c524aeb80da074c2..9ba2984b2c96aa56281ff216346d027715b5fc2b 100644 --- a/lib/ngtcp2_conn.c +++ b/lib/ngtcp2_conn.c @@ -9148,7 +9148,7 @@ ngtcp2_ssize ngtcp2_conn_write_application_close(ngtcp2_conn *conn, return nwrite; } - res += (size_t)nwrite; + res += nwrite; if (res == 0) { return NGTCP2_ERR_NOBUF;