diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-06-15 16:43:59 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-06-15 16:43:59 -0400 |
commit | 97555f453741c41891461d850ab16452fb6b7131 (patch) | |
tree | 3c023271e16be61e7b4365f02cc5c3e2d57d3353 /src/common | |
parent | 30c4653780daa1c70946ed78c102eeab8adb2fe6 (diff) | |
download | tor-97555f453741c41891461d850ab16452fb6b7131.tar tor-97555f453741c41891461d850ab16452fb6b7131.tar.gz |
fix a compiler warning added in one of my XXX023 fixes.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 06eb5839f..ca850a303 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) { |