Fixed sign handling in constants
authorClifford Wolf <clifford@clifford.at>
Thu, 7 Nov 2013 13:53:10 +0000 (14:53 +0100)
committerClifford Wolf <clifford@clifford.at>
Thu, 7 Nov 2013 13:53:10 +0000 (14:53 +0100)
frontends/ast/simplify.cc

index 132a59f2c5bbf7f18b0e38671940b1075a731e04..7712023c56883ecaf2c50992a7535eff67219994 100644 (file)
@@ -445,6 +445,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
                        delete children[0];
                        children[0] = mkconst_bits(sig.as_const().bits, children[0]->is_signed);
                }
+               children[0]->is_signed = is_signed;
        }
 
        // annotate identifiers using scope resolution and create auto-wires as needed