summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-27 11:58:26 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-27 11:58:26 -0400
commit480dab4f2f8de6661c71e71f37d4a824ecf38e3c (patch)
treece7d4a432b97900e59b5a0817f20e40789f6ef0a /src
parent10a4f9cd0745cbcb1a9018304dad2dd5edbee1f2 (diff)
downloadtor-480dab4f2f8de6661c71e71f37d4a824ecf38e3c.tar.gz
tor-480dab4f2f8de6661c71e71f37d4a824ecf38e3c.zip
Use a cast to try to avoid a tautalogical comparison warning
Diffstat (limited to 'src')
-rw-r--r--src/or/directory.c2
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);