mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 05:03:43 +01:00
Fix compile on Snow Leopard
This commit is contained in:
parent
61e814af7a
commit
772ce9d085
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user