From 480dab4f2f8de6661c71e71f37d4a824ecf38e3c Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 27 Apr 2017 11:58:26 -0400 Subject: Use a cast to try to avoid a tautalogical comparison warning --- src/or/directory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf