From 0f144d6a040ae8870b4f683601d6d3d5fb252ec1 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 14 Oct 2004 15:41:41 +0000 Subject: [PATCH] fix warning on win32 svn:r2518 --- src/or/connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/or/connection.c b/src/or/connection.c index a5e857cf6c..971ff370a4 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -734,8 +734,8 @@ int connection_handle_read(connection_t *conn) { /* There's a read error; kill the connection.*/ connection_close_immediate(conn); /* Don't flush; connection is dead. */ if(conn->type == CONN_TYPE_AP || conn->type == CONN_TYPE_EXIT) { - connection_edge_end(conn, connection_state_is_open(conn) ? - END_STREAM_REASON_MISC : END_STREAM_REASON_CONNECTFAILED, + connection_edge_end(conn, (char)(connection_state_is_open(conn) ? + END_STREAM_REASON_MISC : END_STREAM_REASON_CONNECTFAILED), conn->cpath_layer); } connection_mark_for_close(conn);