[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 286d44402e829488abe802efd1607eabbc98f1d1
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
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)
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits