diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-07-05 15:56:57 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-11 16:29:06 -0400 |
commit | 6a49e3360bcb30b267da4a47af749bd4571ee72d (patch) | |
tree | fb3bdf734c4ef5c60e4eb25063ccb58e8aba8457 | |
parent | a25d97e53046132567fd78e82791a2f8cad7b199 (diff) | |
download | tor-6a49e3360bcb30b267da4a47af749bd4571ee72d.tar.gz tor-6a49e3360bcb30b267da4a47af749bd4571ee72d.zip |
Fix mixed-sign comparison warning in fix for 22797.
-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 3ebcfad140..e16dfb1d2b 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -1719,7 +1719,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; |