diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2011-03-28 18:20:50 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2011-03-28 19:25:38 +0200 |
commit | 8d81831d715adf9cb374100e23cc2b118efe3101 (patch) | |
tree | 628efe33bc565eaffa92f2f1488f3d6c2633b548 | |
parent | 432734279d3688fafb466a23f43585ff509ff693 (diff) | |
download | tor-8d81831d715adf9cb374100e23cc2b118efe3101.tar.gz tor-8d81831d715adf9cb374100e23cc2b118efe3101.zip |
Add a missing cast to silence the compiler
-rw-r--r-- | src/or/connection.c | 2 |
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; } |