]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a compilation warning with clang 3.0
authorNick Mathewson <nickm@torproject.org>
Tue, 26 Jun 2012 14:48:31 +0000 (10:48 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 26 Jun 2012 14:48:31 +0000 (10:48 -0400)
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

index e5b51b9a94718e55ede7464bd20b8aace11a9660..d94dcf2003689d7bd9a09426878ff7fd77495547 100644 (file)
@@ -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;