summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 084237dea1..6e7bbd5bad 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -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;
}