Add a missing cast to silence the compiler

This commit is contained in:
Sebastian Hahn 2011-03-28 18:20:50 +02:00
parent 432734279d
commit 8d81831d71

View File

@ -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;
}