aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-06-30 14:08:28 -0400
committerNick Mathewson <nickm@torproject.org>2016-06-30 14:08:28 -0400
commitded7e8093cad02c3acb53b4bb47083ae82b10b57 (patch)
tree7646362f33163a80719f4eab6bada2a4b2d4c68e /src/or
parent3627718348decd5ec625d6182220d012d32afa33 (diff)
downloadtor-ded7e8093cad02c3acb53b4bb47083ae82b10b57.tar.gz
tor-ded7e8093cad02c3acb53b4bb47083ae82b10b57.zip
Fix three -Wtautological-constant-out-of-range-compare warnings.
Diffstat (limited to 'src/or')
-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]);
}