Fixed vs2008 warning

This commit is contained in:
Alexander Larsson 2010-04-12 13:36:27 +02:00
parent ee035787ef
commit d033a7c71e

View File

@ -41,7 +41,7 @@ static inline void rel_time(struct timespec& time, uint64_t delta_nano)
#ifdef WIN32
struct _timeb now;
_ftime_s(&now);
time.tv_sec = now.time;
time.tv_sec = (long)now.time;
time.tv_nsec = now.millitm * 1000 * 1000;
#else
clock_gettime(CLOCK_MONOTONIC, &time);