mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Add a missing cast to silence the compiler
This commit is contained in:
parent
432734279d
commit
8d81831d71
@ -2790,7 +2790,7 @@ connection_handle_write_impl(connection_t *conn, int force)
|
||||
edge_connection_t *edge_conn = TO_EDGE_CONN(conn);
|
||||
/* Check for overflow: */
|
||||
if (PREDICT_LIKELY(UINT32_MAX - edge_conn->n_written > n_written))
|
||||
edge_conn->n_written += n_written;
|
||||
edge_conn->n_written += (int)n_written;
|
||||
else
|
||||
edge_conn->n_written = UINT32_MAX;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user