mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
Fix three -Wtautological-constant-out-of-range-compare warnings.
This commit is contained in:
parent
3627718348
commit
ded7e8093c
@ -1226,7 +1226,7 @@ networkstatus_get_dl_status_by_flavor,(consensus_flavor_t flavor))
|
||||
const int we_are_bootstrapping =
|
||||
networkstatus_consensus_is_bootstrapping(time(NULL));
|
||||
|
||||
if (flavor <= N_CONSENSUS_FLAVORS) {
|
||||
if ((int)flavor <= N_CONSENSUS_FLAVORS) {
|
||||
dl = &((we_are_bootstrapping ?
|
||||
consensus_bootstrap_dl_status : consensus_dl_status)[flavor]);
|
||||
}
|
||||
@ -1241,7 +1241,7 @@ networkstatus_get_dl_status_by_flavor_bootstrap,(consensus_flavor_t flavor))
|
||||
{
|
||||
download_status_t *dl = NULL;
|
||||
|
||||
if (flavor <= N_CONSENSUS_FLAVORS) {
|
||||
if ((int)flavor <= N_CONSENSUS_FLAVORS) {
|
||||
dl = &(consensus_bootstrap_dl_status[flavor]);
|
||||
}
|
||||
|
||||
@ -1255,7 +1255,7 @@ networkstatus_get_dl_status_by_flavor_running,(consensus_flavor_t flavor))
|
||||
{
|
||||
download_status_t *dl = NULL;
|
||||
|
||||
if (flavor <= N_CONSENSUS_FLAVORS) {
|
||||
if ((int)flavor <= N_CONSENSUS_FLAVORS) {
|
||||
dl = &(consensus_dl_status[flavor]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user