mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix build on 32-bit Windows.
Currently Tor fails with the following error:
src/test/test_stats.c: In function ‘test_rephist_v3_onions’:
src/test/test_stats.c:527:22: error: overflow in implicit constant conversion [-Werror=overflow]
update_approx_time(10101010101);
This patch changes the constant passed to update_approx_time() to avoid
the overflow in the implicit conversion.
See: tor#40199
This commit is contained in:
@@ -524,7 +524,9 @@ test_rephist_v3_onions(void *arg)
|
||||
/* Initialize the subsystems */
|
||||
hs_cache_init();
|
||||
rep_hist_hs_stats_init(0);
|
||||
update_approx_time(10101010101);
|
||||
|
||||
/* Change time to 03-01-2002 23:36 UTC */
|
||||
update_approx_time(1010101010);
|
||||
|
||||
/* HS stats should be zero here */
|
||||
hs_v3_stats = rep_hist_get_hs_v3_stats();
|
||||
|
||||
Reference in New Issue
Block a user