[tor-commits] [tor/release-0.2.2] Add a missing cast to silence the compiler

arma at torproject.org arma at torproject.org
Fri Apr 8 20:44:16 UTC 2011


commit 8d81831d715adf9cb374100e23cc2b118efe3101
Author: Sebastian Hahn <sebastian at torproject.org>
Date:   Mon Mar 28 18:20:50 2011 +0200

    Add a missing cast to silence the compiler
---
 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 084237d..6e7bbd5 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;
   }





More information about the tor-commits mailing list