summaryrefslogtreecommitdiff
path: root/frontends/ast
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-28 15:19:34 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-28 15:19:34 +0200
commit0598bc8708d942a0e533ddeba6a4f7b5effe7f39 (patch)
treed068e2ad8bf373fa2e845b65994de864cb6f1999 /frontends/ast
parent27a872d1e7041be4894bc643a420587ff5894125 (diff)
Fixed width detection for part selects
Diffstat (limited to 'frontends/ast')
-rw-r--r--frontends/ast/genrtlil.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/ast/genrtlil.cc b/frontends/ast/genrtlil.cc
index 5545fc16..9e186683 100644
--- a/frontends/ast/genrtlil.cc
+++ b/frontends/ast/genrtlil.cc
@@ -599,8 +599,8 @@ void AstNode::detectSignWidthWorker(int &width_hint, bool &sign_hint, bool *foun
} else
this_width = range->range_left - range->range_right + 1;
sign_hint = false;
- } else
- width_hint = std::max(width_hint, this_width);
+ }
+ width_hint = std::max(width_hint, this_width);
if (!id_ast->is_signed)
sign_hint = false;
break;