Fixed AST_CONSTANT node generation

This commit is contained in:
Clifford Wolf 2013-07-07 15:40:26 +02:00
parent 52d21a63ca
commit eff68560a2
1 changed files with 1 additions and 1 deletions

View File

@ -661,7 +661,7 @@ AstNode *AstNode::mkconst_bits(const std::vector<RTLIL::State> &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;
}