[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix a warning on 32-bit clang
commit a3685ba0c53003361402bed2058009da81618ed5
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Wed Aug 9 08:31:44 2017 -0400
Fix a warning on 32-bit clang
---
src/or/hs_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/or/hs_common.c b/src/or/hs_common.c
index 0d3d41b7c..6c860b0cf 100644
--- a/src/or/hs_common.c
+++ b/src/or/hs_common.c
@@ -245,7 +245,7 @@ hs_get_start_time_of_next_time_period(time_t now)
/* Apply rotation offset as specified by prop224 section [TIME-PERIODS] */
unsigned int time_period_rotation_offset = sr_state_get_phase_duration();
- return start_of_next_tp_in_mins * 60 + time_period_rotation_offset;
+ return (time_t)(start_of_next_tp_in_mins * 60 + time_period_rotation_offset);
}
/* Create a new rend_data_t for a specific given <b>version</b>.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits