Fixed detectSignWidthWorker (ast frontend) for AST_CONCAT

This commit is contained in:
Clifford Wolf 2013-11-03 18:56:45 +01:00
parent ada80545fa
commit d2b083f5cb
1 changed files with 1 additions and 1 deletions

View File

@ -587,7 +587,7 @@ void AstNode::detectSignWidthWorker(int &width_hint, bool &sign_hint)
for (auto child : children) {
sub_width_hint = 0;
sub_sign_hint = true;
child->detectSignWidthWorker(width_hint, sign_hint);
child->detectSignWidthWorker(sub_width_hint, sub_sign_hint);
this_width += sub_width_hint;
}
width_hint = std::max(width_hint, this_width);