From ec13cf6c9cefa709db9fb9099e3ce5f502931161 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 29 Jun 2017 10:25:33 -0700 Subject: Add casts to silence MSVC --- common/threads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/threads.c') diff --git a/common/threads.c b/common/threads.c index 0a019d03..0761a324 100644 --- a/common/threads.c +++ b/common/threads.c @@ -257,7 +257,7 @@ int alcnd_timedwait(alcnd_t *cond, almtx_t *mtx, const struct timespec *time_poi else { sleeptime = (time_point->tv_nsec - curtime.tv_nsec + 999999)/1000000; - sleeptime += (time_point->tv_sec - curtime.tv_sec)*1000; + sleeptime += (DWORD)(time_point->tv_sec - curtime.tv_sec)*1000; if(SleepConditionVariableCS(cond, mtx, sleeptime) != 0) return althrd_success; } @@ -364,7 +364,7 @@ int alcnd_timedwait(alcnd_t *cond, almtx_t *mtx, const struct timespec *time_poi else { sleeptime = (time_point->tv_nsec - curtime.tv_nsec + 999999)/1000000; - sleeptime += (time_point->tv_sec - curtime.tv_sec)*1000; + sleeptime += (DWORD)(time_point->tv_sec - curtime.tv_sec)*1000; } IncrementRef(&icond->wait_count); -- cgit v1.2.3