summaryrefslogtreecommitdiff
path: root/frontends/ast/genrtlil.cc
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/ast/genrtlil.cc')
-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);