From: Sebastian Hahn Date: Mon, 21 Sep 2009 03:12:37 +0000 (+0200) Subject: Fix compile on Snow Leopard X-Git-Tag: tor-0.2.2.2-alpha~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=772ce9d085ff5ce36b8d23e1a883e036fd96b830;p=thirdparty%2Ftor.git Fix compile on Snow Leopard --- diff --git a/src/common/util.c b/src/common/util.c index a69ea33d08..d05c308fe8 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; }