diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-07-05 15:56:57 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-05 15:56:57 -0400 |
commit | 9383fa3851a47e4db83bccdb923760e059ac7941 (patch) | |
tree | e9412e7e250a4a6d30e8fcbe30fb964044e5863d /src/common/compat.c | |
parent | 5434b2451e73bd4cd5eb62fb5e6c468eeee70153 (diff) | |
download | tor-9383fa3851a47e4db83bccdb923760e059ac7941.tar.gz tor-9383fa3851a47e4db83bccdb923760e059ac7941.zip |
Fix mixed-sign comparison warning in fix for 22797.
Diffstat (limited to 'src/common/compat.c')
-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 fb712f26d9..3bea626903 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -1733,7 +1733,7 @@ set_max_file_descriptors(rlim_t limit, int *max_out) int bad = 1; #ifdef OPEN_MAX uint64_t try_limit = OPEN_MAX - ULIMIT_BUFFER; - if (errno == EINVAL && try_limit < rlim.rlim_cur) { + if (errno == EINVAL && try_limit < (uint64_t) rlim.rlim_cur) { /* On some platforms, OPEN_MAX is the real limit, and getrlimit() is * full of nasty lies. I'm looking at you, OSX 10.5.... */ rlim.rlim_cur = try_limit; |