[tor-commits] [tor/release-0.2.3] Fix a compilation warning with clang 3.0
nickm at torproject.org
nickm at torproject.org
Thu Jun 28 20:00:58 UTC 2012
commit 201b852c277bdf4bf70a656871d502318bd5b25b
Author: Nick Mathewson <nickm at torproject.org>
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;
More information about the tor-commits
mailing list