[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Remove an always-true condition: all ints are <= INT_MAX
commit 14169a3d703315de703a06bc61855aba8ef7ede8
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Mon Jun 27 13:18:54 2016 -0400
Remove an always-true condition: all ints are <= INT_MAX
---
src/or/directory.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/or/directory.c b/src/or/directory.c
index 5886a73..1fe4d68 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -3839,8 +3839,7 @@ download_status_schedule_get_delay(download_status_t *dls,
schedule != NULL);
/* If we're using random exponential backoff, we do need min/max delay */
tor_assert(dls->backoff != DL_SCHED_RANDOM_EXPONENTIAL ||
- (min_delay >= 0 && max_delay >= min_delay &&
- max_delay <= INT_MAX));
+ (min_delay >= 0 && max_delay >= min_delay));
int delay = INT_MAX;
uint8_t dls_schedule_position = (dls->increment_on
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits