summaryrefslogtreecommitdiffstats
path: root/client/threads.cpp
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-04-12 13:36:27 +0200
committerAlexander Larsson <alexl@redhat.com>2010-04-12 21:43:16 +0200
commitd033a7c71efcb1c25505ba21d1d7f8979f550431 (patch)
tree91dc631cf3b1bf0ca326c4f5a6618bd66bbb3403 /client/threads.cpp
parentee035787effaa86d16632b142897aaf3fa29c341 (diff)
downloadspice-d033a7c71efcb1c25505ba21d1d7f8979f550431.tar.gz
spice-d033a7c71efcb1c25505ba21d1d7f8979f550431.tar.xz
spice-d033a7c71efcb1c25505ba21d1d7f8979f550431.zip
Fixed vs2008 warning
Diffstat (limited to 'client/threads.cpp')
-rw-r--r--client/threads.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/threads.cpp b/client/threads.cpp
index 20774f3a..93e2259c 100644
--- a/client/threads.cpp
+++ b/client/threads.cpp
@@ -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);