aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2009-09-21 05:12:37 +0200
committerNick Mathewson <nickm@torproject.org>2009-09-20 23:17:00 -0400
commit772ce9d085ff5ce36b8d23e1a883e036fd96b830 (patch)
treec61937c2fc8b9bb974453d503e6e3cdb63da93e0
parent61e814af7a4e257523be9d9b29f029358241bb14 (diff)
downloadtor-772ce9d085ff5ce36b8d23e1a883e036fd96b830.tar
tor-772ce9d085ff5ce36b8d23e1a883e036fd96b830.tar.gz
Fix compile on Snow Leopard
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index a69ea33d0..d05c308fe 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1055,7 +1055,7 @@ tv_to_msec(const struct timeval *tv)
{
int64_t conv = ((int64_t)tv->tv_sec)*1000L;
/* Round ghetto-style */
- conv += (tv->tv_usec+500)/1000L;
+ conv += ((int64_t)tv->tv_usec+500)/1000L;
return conv;
}