From acc6b4d009c124c621ecf76d45cc9b4932319ebd Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Tue, 10 Apr 2012 23:54:34 +0200 Subject: [PATCH] Fixed warning by adding an explicit cast to long; TimerThread.c ..\..\threadutil\src\TimerThread.c(110): warning C4244: '=' : conversion from 'time_t' to 'long', possible loss of data (cherry picked from commit 1a98394781e15ed12ab7bceb7817bd9786650b87) --- threadutil/src/TimerThread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/threadutil/src/TimerThread.c b/threadutil/src/TimerThread.c index 0c2287a..cbbc3c8 100644 --- a/threadutil/src/TimerThread.c +++ b/threadutil/src/TimerThread.c @@ -107,7 +107,7 @@ static void *TimerThreadWorker( } if (nextEvent) { timeToWait.tv_nsec = 0; - timeToWait.tv_sec = nextEvent->eventTime; + timeToWait.tv_sec = (long)nextEvent->eventTime; ithread_cond_timedwait( &timer->condition, &timer->mutex, &timeToWait ); } else {