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

nickm at torproject.org nickm at torproject.org
Thu Apr 7 16:04:48 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