aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/log.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-10-18 15:20:38 +0200
committerClifford Wolf <clifford@clifford.at>2014-10-18 15:20:38 +0200
commit84ffe04075bbddfd1b288295c07d036416923c3a (patch)
tree1d3b80144cad20aeab554084d42e7ba592fc686e /kernel/log.cc
parent85572b05e5359f28c1625b873dc14428f796a454 (diff)
downloadyosys-84ffe04075bbddfd1b288295c07d036416923c3a.tar.gz
yosys-84ffe04075bbddfd1b288295c07d036416923c3a.tar.bz2
yosys-84ffe04075bbddfd1b288295c07d036416923c3a.zip
Fixed various VS warnings
Diffstat (limited to 'kernel/log.cc')
-rw-r--r--kernel/log.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/log.cc b/kernel/log.cc
index 19eb38c73..807f58bf6 100644
--- a/kernel/log.cc
+++ b/kernel/log.cc
@@ -64,7 +64,7 @@ int gettimeofday(struct timeval *tv, struct timezone *tz)
counter.QuadPart *= 1000000;
counter.QuadPart /= freq.QuadPart;
- tv->tv_sec = counter.QuadPart / 1000000;
+ tv->tv_sec = long(counter.QuadPart / 1000000);
tv->tv_usec = counter.QuadPart % 1000000;
return 0;