[tor-commits] [tor/maint-0.2.2] Fix a compile warning on OS X 10.6

nickm at torproject.org nickm at torproject.org
Thu Apr 7 15:44:12 UTC 2011


commit 286d44402e829488abe802efd1607eabbc98f1d1
Author: Sebastian Hahn <sebastian at torproject.org>
Date:   Thu Apr 7 05:30:49 2011 +0200

    Fix a compile warning on OS X 10.6
---
 src/or/circuituse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 447ec84..3d5db98 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -291,7 +291,7 @@ circuit_expire_building(void)
     long ms = tor_lround(msec);                             \
     struct timeval diff;                                    \
     diff.tv_sec = ms / 1000;                                \
-    diff.tv_usec = (ms % 1000) * 1000;                      \
+    diff.tv_usec = (int)((ms % 1000) * 1000);               \
     timersub(&now, &diff, &target);                         \
   } while (0)
 



More information about the tor-commits mailing list