diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-03-18 12:15:00 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-03-18 12:15:00 +0100 |
commit | ef4207d5ade8254c9b0f63cac2ad5fee310362d4 (patch) | |
tree | 04de90daeda10dd481b4ca61da2175e4bbd2d602 | |
parent | b6d08f39baf508951ef36bedbd583f2b9fb48d1b (diff) | |
download | yosys-ef4207d5ade8254c9b0f63cac2ad5fee310362d4.tar.gz yosys-ef4207d5ade8254c9b0f63cac2ad5fee310362d4.tar.bz2 yosys-ef4207d5ade8254c9b0f63cac2ad5fee310362d4.zip |
Fixed localparam signdness, fixes #127
-rw-r--r-- | frontends/ast/simplify.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 5a9a8b997..ed6eb8599 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -794,7 +794,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage, RTLIL::SigSpec sig(children[0]->bits); sig.extend_u0(width, children[0]->is_signed); AstNode *old_child_0 = children[0]; - children[0] = mkconst_bits(sig.as_const().bits, children[0]->is_signed); + children[0] = mkconst_bits(sig.as_const().bits, is_signed); delete old_child_0; } children[0]->is_signed = is_signed; |