From: Clifford Wolf Date: Sun, 7 Jul 2013 13:40:26 +0000 (+0200) Subject: Fixed AST_CONSTANT node generation X-Git-Tag: yosys-0.2.0~543 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eff68560a2914791c8d0377edb5922fd5077f4f3;p=yosys.git Fixed AST_CONSTANT node generation --- diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc index f7a39cf19..3e9ea50ac 100644 --- a/frontends/ast/ast.cc +++ b/frontends/ast/ast.cc @@ -661,7 +661,7 @@ AstNode *AstNode::mkconst_bits(const std::vector &v, bool is_signe node->integer |= (node->bits.back() == RTLIL::S1) << i; } node->range_valid = true; - node->range_left = node->bits.size(); + node->range_left = node->bits.size()-1; node->range_right = 0; return node; }