summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-11-03 18:56:45 +0100
committerClifford Wolf <clifford@clifford.at>2013-11-03 18:56:45 +0100
commitd2b083f5cb39d544130331ddb3d41a451b485c06 (patch)
treec9d52cd928f3851ec6f93ceab826c8ad9bdb251e
parentada80545faf6a0c0d871909f9e50e0f426b46ed8 (diff)
Fixed detectSignWidthWorker (ast frontend) for AST_CONCAT
-rw-r--r--frontends/ast/genrtlil.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/ast/genrtlil.cc b/frontends/ast/genrtlil.cc
index ff4841ec..ab22b865 100644
--- a/frontends/ast/genrtlil.cc
+++ b/frontends/ast/genrtlil.cc
@@ -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);