mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Use a cast to try to avoid a tautalogical comparison warning
This commit is contained in:
parent
10a4f9cd07
commit
480dab4f2f
@ -2942,7 +2942,7 @@ parse_accept_encoding_header(const char *h)
|
|||||||
SMARTLIST_FOREACH_BEGIN(methods, const char *, m) {
|
SMARTLIST_FOREACH_BEGIN(methods, const char *, m) {
|
||||||
compress_method_t method = compression_method_get_by_name(m);
|
compress_method_t method = compression_method_get_by_name(m);
|
||||||
if (method != UNKNOWN_METHOD) {
|
if (method != UNKNOWN_METHOD) {
|
||||||
tor_assert(method < 8*sizeof(unsigned));
|
tor_assert(((unsigned)method) < 8*sizeof(unsigned));
|
||||||
result |= (1u << method);
|
result |= (1u << method);
|
||||||
}
|
}
|
||||||
} SMARTLIST_FOREACH_END(m);
|
} SMARTLIST_FOREACH_END(m);
|
||||||
|
Loading…
Reference in New Issue
Block a user