[tor-commits] [tor/master] add parenthesis to make cast work right.

nickm at torproject.org nickm at torproject.org
Wed Aug 23 17:13:00 UTC 2017


commit 18f3f1ffa3b2f08418b52f55dfe059c5b5d864b4
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Aug 23 13:12:58 2017 -0400

    add parenthesis to make cast work right.
---
 src/or/hs_service.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/hs_service.c b/src/or/hs_service.c
index 3f6de0ba2..afdb6e844 100644
--- a/src/or/hs_service.c
+++ b/src/or/hs_service.c
@@ -1877,7 +1877,7 @@ can_service_launch_intro_circuit(hs_service_t *service, time_t now)
                INTRO_CIRC_RETRY_PERIOD,
                service->state.num_intro_circ_launched,
                (long int) elapsed_time,
-               (long int) INTRO_CIRC_RETRY_PERIOD - elapsed_time);
+               (long int) (INTRO_CIRC_RETRY_PERIOD - elapsed_time));
       tor_free(msg);
     }
   }



More information about the tor-commits mailing list