summaryrefslogtreecommitdiff
path: root/src/common/compat_pthreads.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-24 08:48:47 -0700
committerNick Mathewson <nickm@torproject.org>2016-09-24 08:48:47 -0700
commit1eba088054eca1555b455ee4a2adfafecb888af9 (patch)
treebef23210c2d5872a01c73589f8fed0ed3ffaad48 /src/common/compat_pthreads.c
parentec19ecce4b553859b501c7279219e8a21549639a (diff)
downloadtor-1eba088054eca1555b455ee4a2adfafecb888af9.tar.gz
tor-1eba088054eca1555b455ee4a2adfafecb888af9.zip
Fix compilation on OSX Sierra (10.12)
Diffstat (limited to 'src/common/compat_pthreads.c')
-rw-r--r--src/common/compat_pthreads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat_pthreads.c b/src/common/compat_pthreads.c
index 1b24cc3c2a..7640ebae34 100644
--- a/src/common/compat_pthreads.c
+++ b/src/common/compat_pthreads.c
@@ -247,7 +247,7 @@ tor_cond_wait(tor_cond_t *cond, tor_mutex_t *mutex, const struct timeval *tv)
return -1;
}
tvnow.tv_sec = ts.tv_sec;
- tvnow.tv_usec = ts.tv_nsec / 1000;
+ tvnow.tv_usec = (int)(ts.tv_nsec / 1000);
timeradd(tv, &tvnow, &tvsum);
#else
if (gettimeofday(&tvnow, NULL) < 0)