mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 15:10:48 +01:00
Use a cast to try to avoid a tautalogical comparison warning
This commit is contained in:
parent
10a4f9cd07
commit
480dab4f2f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue