[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 8d81831d715adf9cb374100e23cc2b118efe3101
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
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;
   }



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits