Fixed localparam signdness, fixes #127
authorClifford Wolf <clifford@clifford.at>
Fri, 18 Mar 2016 11:15:00 +0000 (12:15 +0100)
committerClifford Wolf <clifford@clifford.at>
Fri, 18 Mar 2016 11:15:00 +0000 (12:15 +0100)
frontends/ast/simplify.cc

index 5a9a8b9977504c0db73992df082cd32e650ad397..ed6eb85994ca8160d4afde5d89b860c5c0a88500 100644 (file)
@@ -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;