[or-cvs] [tor/master] Fix compile on Snow Leopard
Nick Mathewson
nickm at seul.org
Mon Sep 21 03:16:38 UTC 2009
Author: Sebastian Hahn <sebastian at torproject.org>
Date: Mon, 21 Sep 2009 05:12:37 +0200
Subject: Fix compile on Snow Leopard
Commit: 772ce9d085ff5ce36b8d23e1a883e036fd96b830
---
src/common/util.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/common/util.c b/src/common/util.c
index a69ea33..d05c308 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;
}
--
1.5.6.5
More information about the tor-commits
mailing list