[tor-commits] [tor/master] Add a cast to make clang happy.

nickm at torproject.org nickm at torproject.org
Mon Apr 30 21:14:43 UTC 2018


commit 3a2470762d352484d8fe163fe9d895647b4f02be
Author: Nick Mathewson <nickm at torproject.org>
Date:   Mon Apr 30 17:14:40 2018 -0400

    Add a cast to make clang happy.
---
 src/or/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/main.c b/src/or/main.c
index 010e7200c..f1b830830 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2011,7 +2011,7 @@ save_state_callback(time_t now, const or_options_t *options)
      */
     return PERIODIC_EVENT_NO_UPDATE;
   } else {
-    return next_write - now;
+    return (int)(next_write - now);
   }
 }
 



More information about the tor-commits mailing list