diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-02-13 17:31:24 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-02-13 17:31:24 +0100 |
commit | bcc873b805f8ec74422752da530b71d8d762bded (patch) | |
tree | effe0c5495a8c2a55235bd2db1bd635923d97528 /frontends | |
parent | 6f1d694171a5fd667f05402cc4e93fe2c66428e4 (diff) | |
download | yosys-bcc873b805f8ec74422752da530b71d8d762bded.tar.gz yosys-bcc873b805f8ec74422752da530b71d8d762bded.tar.bz2 yosys-bcc873b805f8ec74422752da530b71d8d762bded.zip |
Fixed some visual studio warnings
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/ast/ast.cc | 2 | ||||
-rw-r--r-- | frontends/ast/genrtlil.cc | 2 | ||||
-rw-r--r-- | frontends/ast/simplify.cc | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc index 3e163bae7..834ee82ab 100644 --- a/frontends/ast/ast.cc +++ b/frontends/ast/ast.cc @@ -820,7 +820,7 @@ uint64_t AstNode::asInt(bool is_signed) } if (type == AST_REALVALUE) - return realvalue; + return uint64_t(realvalue); log_abort(); } diff --git a/frontends/ast/genrtlil.cc b/frontends/ast/genrtlil.cc index 876bfbe3d..9fc590376 100644 --- a/frontends/ast/genrtlil.cc +++ b/frontends/ast/genrtlil.cc @@ -1257,7 +1257,7 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint) if (type == AST_MEMINIT) { if (children[2]->type != AST_CONSTANT) log_error("Memory init with non-constant word count at %s:%d!\n", filename.c_str(), linenum); - num_words = children[2]->asInt(false); + num_words = int(children[2]->asInt(false)); cell->parameters["\\WORDS"] = RTLIL::Const(num_words); } diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 2264d896a..2621be490 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -1705,7 +1705,7 @@ skip_dynamic_range_lvalue_expansion:; while (node_addr->simplify(true, false, false, stage, width_hint, sign_hint, false)) { } if (node_addr->type != AST_CONSTANT) log_error("Failed to evaluate system function `%s' with non-constant 3rd argument at %s:%d.\n", str.c_str(), filename.c_str(), linenum); - start_addr = node_addr->asInt(false); + start_addr = int(node_addr->asInt(false)); } if (GetSize(children) > 3) { @@ -1713,7 +1713,7 @@ skip_dynamic_range_lvalue_expansion:; while (node_addr->simplify(true, false, false, stage, width_hint, sign_hint, false)) { } if (node_addr->type != AST_CONSTANT) log_error("Failed to evaluate system function `%s' with non-constant 4th argument at %s:%d.\n", str.c_str(), filename.c_str(), linenum); - finish_addr = node_addr->asInt(false); + finish_addr = int(node_addr->asInt(false)); } bool unconditional_init = false; |