From ee65dea738fefbf44b91a2ac10f9a93b35115af6 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 28 Jul 2014 10:10:08 +0200 Subject: [PATCH] Fixed signdness detection of expressions with bit- and part-selects --- frontends/ast/genrtlil.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/frontends/ast/genrtlil.cc b/frontends/ast/genrtlil.cc index 064aec93f..95e15903b 100644 --- a/frontends/ast/genrtlil.cc +++ b/frontends/ast/genrtlil.cc @@ -599,6 +599,7 @@ void AstNode::detectSignWidthWorker(int &width_hint, bool &sign_hint, bool *foun delete right_at_zero_ast; } else this_width = range->range_left - range->range_right + 1; + sign_hint = false; } else width_hint = std::max(width_hint, this_width); if (!id_ast->is_signed) -- 2.30.2