From b380c8c790233f9237b503656cfd28fd5e65eff5 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 11 Jul 2013 19:24:59 +0200 Subject: Another vloghammer related bugfix --- frontends/ast/genrtlil.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontends/ast') diff --git a/frontends/ast/genrtlil.cc b/frontends/ast/genrtlil.cc index 7a9c8ba64..791ee9867 100644 --- a/frontends/ast/genrtlil.cc +++ b/frontends/ast/genrtlil.cc @@ -836,7 +836,7 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint) case AST_TO_SIGNED: case AST_TO_UNSIGNED: { RTLIL::SigSpec sig = children[0]->genRTLIL(); - is_signed = type == AST_TO_SIGNED; + is_signed = sign_hint; return sig; } -- cgit v1.2.3