From ada80545faf6a0c0d871909f9e50e0f426b46ed8 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 2 Nov 2013 21:13:01 +0100 Subject: Behavior should be identical now to rev. 0b4a64ac6adbd6 (next: testing before constfold fixes) --- frontends/ast/genrtlil.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'frontends/ast/genrtlil.cc') diff --git a/frontends/ast/genrtlil.cc b/frontends/ast/genrtlil.cc index a4e01899c..ff4841ec4 100644 --- a/frontends/ast/genrtlil.cc +++ b/frontends/ast/genrtlil.cc @@ -570,6 +570,8 @@ void AstNode::detectSignWidthWorker(int &width_hint, bool &sign_hint) this_width = range->range_left - range->range_right + 1; } else width_hint = std::max(width_hint, this_width); + if (!id2ast->is_signed) + sign_hint = false; break; case AST_TO_SIGNED: -- cgit v1.2.3