From: Nick Mathewson Date: Fri, 15 Jun 2012 20:43:59 +0000 (-0400) Subject: fix a compiler warning added in one of my XXX023 fixes. X-Git-Tag: tor-0.2.3.18-rc~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=97555f453741c41891461d850ab16452fb6b7131;p=thirdparty%2Ftor.git fix a compiler warning added in one of my XXX023 fixes. --- diff --git a/src/common/compat.c b/src/common/compat.c index 06eb5839fe..ca850a3038 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -1311,7 +1311,7 @@ set_max_file_descriptors(rlim_t limit, int *max_out) limit = rlim.rlim_max; if (limit > INT_MAX) limit = INT_MAX; - *max_out = limit - ULIMIT_BUFFER; + *max_out = (int)limit - ULIMIT_BUFFER; return 0; } if (rlim.rlim_max < limit) {