aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/compat.c2
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) {