[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Add a cast so that 32-bit compilation goes without errors
commit 290274dbb5428bc5d99926ce5d7f824165be84e8
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Mon Sep 18 12:44:26 2017 -0400
Add a cast so that 32-bit compilation goes without errors
---
src/or/scheduler_kist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/or/scheduler_kist.c b/src/or/scheduler_kist.c
index e4ae07107..4713ffdff 100644
--- a/src/or/scheduler_kist.c
+++ b/src/or/scheduler_kist.c
@@ -526,7 +526,7 @@ kist_scheduler_schedule(void)
* negative and can NOT be smaller than sched_run_interval so values can
* only go from 1000 usec (diff set to interval - 1) to 100000 usec (diff
* set to 0) for the maximum allowed run interval (100ms). */
- next_run.tv_usec = (sched_run_interval - diff) * 1000;
+ next_run.tv_usec = (int) ((sched_run_interval - diff) * 1000);
/* Readding an event reschedules it. It does not duplicate it. */
scheduler_ev_add(&next_run);
} else {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits