projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34caeeb
)
Wrapped math in int constructor
author
William Speirs
<bill.speirs@gmail.com>
Tue, 14 Oct 2014 21:16:50 +0000
(17:16 -0400)
committer
Clifford Wolf
<clifford@clifford.at>
Fri, 17 Oct 2014 09:28:14 +0000
(11:28 +0200)
frontends/ast/simplify.cc
patch
|
blob
|
history
diff --git
a/frontends/ast/simplify.cc
b/frontends/ast/simplify.cc
index 7e15283c41e7a26510cacfab74425b1db8048104..70976b68b02c9e72f4bf835e658b381fa1814844 100644
(file)
--- a/
frontends/ast/simplify.cc
+++ b/
frontends/ast/simplify.cc
@@
-1123,7
+1123,7
@@
bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
if (left_at_zero_ast->type != AST_CONSTANT || right_at_zero_ast->type != AST_CONSTANT)
log_error("Unsupported expression on dynamic range select on signal `%s' at %s:%d!\n",
str.c_str(), filename.c_str(), linenum);
- result_width = abs(
left_at_zero_ast->integer - right_at_zero_ast->integer
) + 1;
+ result_width = abs(
int(left_at_zero_ast->integer - right_at_zero_ast->integer)
) + 1;
}
did_something = true;
newNode = new AstNode(AST_CASE, shift_expr);