mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-08 12:24:55 +00:00
Fixed vs2008 warning
This commit is contained in:
parent
ee035787ef
commit
d033a7c71e
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user