Fixed sign handling in constants

This commit is contained in:
Clifford Wolf 2013-11-07 14:53:10 +01:00
parent 83a8b8b5ca
commit ed4bcd52e5
1 changed files with 1 additions and 0 deletions

View 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