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

[tor-commits] [tor/release-0.2.3] Fix a compilation warning with clang 3.0



commit 201b852c277bdf4bf70a656871d502318bd5b25b
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Tue Jun 26 10:48:31 2012 -0400

    Fix a compilation warning with clang 3.0
    
    In b1ad1a1d0266a20bb we introduced an implicit (but safe)
    long-to-int shortening that clang didn't like.
    
    Warning not in any released version of Tor.
---
 src/common/util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/common/util.c b/src/common/util.c
index e5b51b9..d94dcf2 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -3347,7 +3347,7 @@ format_helper_exit_status(unsigned char child_state, int saved_errno,
   *cur++ = '\n';
   *cur++ = '\0';
 
-  res = cur - hex_errno - 1;
+  res = (int)(cur - hex_errno - 1);
 
   goto done;
 



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