Use a cast to try to avoid a tautalogical comparison warning

This commit is contained in:
Nick Mathewson 2017-04-27 11:58:26 -04:00
parent 10a4f9cd07
commit 480dab4f2f

View File

@ -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);