summaryrefslogtreecommitdiff
path: root/kernel/yosys.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/yosys.cc
parent85572b05e5359f28c1625b873dc14428f796a454 (diff)
Fixed various VS warnings
Diffstat (limited to 'kernel/yosys.cc')
-rw-r--r--kernel/yosys.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc
index 7d1d273c..f314f546 100644
--- a/kernel/yosys.cc
+++ b/kernel/yosys.cc
@@ -231,7 +231,7 @@ std::string make_temp_file(std::string template_str)
while (1) {
for (int i = 0; i < 6; i++) {
static std::string y = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
- static uint32_t x = 314159265 ^ time(NULL);
+ static uint32_t x = 314159265 ^ uint32_t(time(NULL));
x ^= x << 13, x ^= x >> 17, x ^= x << 5;
template_str[pos+i] = y[x % y.size()];
}