From 8d81831d715adf9cb374100e23cc2b118efe3101 Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Mon, 28 Mar 2011 18:20:50 +0200 Subject: Add a missing cast to silence the compiler --- src/or/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-54-g00ecf