From: Sebastian Hahn Date: Mon, 28 Mar 2011 16:20:50 +0000 (+0200) Subject: Add a missing cast to silence the compiler X-Git-Tag: tor-0.2.2.25-alpha~19^2^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d81831d715adf9cb374100e23cc2b118efe3101;p=thirdparty%2Ftor.git Add a missing cast to silence the compiler --- 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; }