From: Nick Mathewson Date: Tue, 26 Jun 2012 14:48:31 +0000 (-0400) Subject: Fix a compilation warning with clang 3.0 X-Git-Tag: tor-0.2.3.18-rc~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=201b852c277bdf4bf70a656871d502318bd5b25b;p=thirdparty%2Ftor.git 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. --- diff --git a/src/common/util.c b/src/common/util.c index e5b51b9a94..d94dcf2003 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;