summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2011-03-28 18:20:50 +0200
committerSebastian Hahn <sebastian@torproject.org>2011-03-28 19:25:38 +0200
commit8d81831d715adf9cb374100e23cc2b118efe3101 (patch)
tree628efe33bc565eaffa92f2f1488f3d6c2633b548 /src
parent432734279d3688fafb466a23f43585ff509ff693 (diff)
downloadtor-8d81831d715adf9cb374100e23cc2b118efe3101.tar.gz
tor-8d81831d715adf9cb374100e23cc2b118efe3101.zip
Add a missing cast to silence the compiler
Diffstat (limited to 'src')
-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;
}