diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-04-27 11:58:26 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-27 11:58:26 -0400 |
commit | 480dab4f2f8de6661c71e71f37d4a824ecf38e3c (patch) | |
tree | ce7d4a432b97900e59b5a0817f20e40789f6ef0a | |
parent | 10a4f9cd0745cbcb1a9018304dad2dd5edbee1f2 (diff) | |
download | tor-480dab4f2f8de6661c71e71f37d4a824ecf38e3c.tar.gz tor-480dab4f2f8de6661c71e71f37d4a824ecf38e3c.zip |
Use a cast to try to avoid a tautalogical comparison warning
-rw-r--r-- | src/or/directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index e53bc78a35..2b9f18af7a 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -2942,7 +2942,7 @@ parse_accept_encoding_header(const char *h) SMARTLIST_FOREACH_BEGIN(methods, const char *, m) { compress_method_t method = compression_method_get_by_name(m); if (method != UNKNOWN_METHOD) { - tor_assert(method < 8*sizeof(unsigned)); + tor_assert(((unsigned)method) < 8*sizeof(unsigned)); result |= (1u << method); } } SMARTLIST_FOREACH_END(m); |