diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-05-12 17:59:29 +0200 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2017-05-12 17:59:29 +0200 |
commit | 64116ab97f14592ed67899512e8e3279df898adc (patch) | |
tree | 41a47f9e42290e3d85733a2f90d2750efe94f8e9 /src/or/consdiffmgr.c | |
parent | a1e8ef007634c4916e1bf3f2473182aa179187d9 (diff) | |
download | tor-64116ab97f14592ed67899512e8e3279df898adc.tar.gz tor-64116ab97f14592ed67899512e8e3279df898adc.zip |
Fix tautological constant out-of-range comparison warnings.
Diffstat (limited to 'src/or/consdiffmgr.c')
-rw-r--r-- | src/or/consdiffmgr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/consdiffmgr.c b/src/or/consdiffmgr.c index b8a52dc322..a2e269323f 100644 --- a/src/or/consdiffmgr.c +++ b/src/or/consdiffmgr.c @@ -540,7 +540,7 @@ consdiffmgr_find_consensus(struct consensus_cache_entry_t **entry_out, consensus_flavor_t flavor, compress_method_t method) { - tor_assert(flavor < N_CONSENSUS_FLAVORS); + tor_assert((int)flavor < N_CONSENSUS_FLAVORS); int pos = consensus_compression_method_pos(method); if (pos < 0) { @@ -1670,7 +1670,7 @@ consensus_compress_worker_replyfn(void *work_) unsigned u; consensus_flavor_t f = job->flavor; - tor_assert(f < N_CONSENSUS_FLAVORS); + tor_assert((int)f < N_CONSENSUS_FLAVORS); for (u = 0; u < ARRAY_LENGTH(handles); ++u) { if (handles[u] == NULL) continue; |