diff --git a/src/or/test.c b/src/or/test.c index 27ecc4757e..9bb54fadb3 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -3514,10 +3514,10 @@ test_circuit_timeout(void) test_assert(circuit_build_times_network_check_live(&final)); if (circuit_build_times_add_timeout(&estimate, 0, - approx_time()-estimate.timeout_ms/1000.0-1)) + (time_t)(approx_time()-estimate.timeout_ms/1000.0-1))) estimate.have_computed_timeout = 1; if (circuit_build_times_add_timeout(&final, 0, - approx_time()-final.timeout_ms/1000.0-1)) + (time_t)(approx_time()-final.timeout_ms/1000.0-1))) final.have_computed_timeout = 1; } @@ -3526,12 +3526,12 @@ test_circuit_timeout(void) for ( ; i < NETWORK_NONLIVE_DISCARD_COUNT; i++) { if (circuit_build_times_add_timeout(&estimate, 0, - approx_time()-estimate.timeout_ms/1000.0-1)) + (time_t)(approx_time()-estimate.timeout_ms/1000.0-1))) estimate.have_computed_timeout = 1; if (i < NETWORK_NONLIVE_DISCARD_COUNT-1) { if (circuit_build_times_add_timeout(&final, 0, - approx_time()-final.timeout_ms/1000.0-1)) + (time_t)(approx_time()-final.timeout_ms/1000.0-1))) final.have_computed_timeout = 1; } }