aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/networkstatus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 99680472f5..5415c30289 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -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]);
}