From 6bcd035d0852666c9323a5e0de9a78b47c699319 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 --- trunk/src/or/connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/src/or/connection.c b/trunk/src/or/connection.c index a5e857cf6c..971ff370a4 100644 --- a/trunk/src/or/connection.c +++ b/trunk/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);