Skip to content

Commit 81b3e76

Browse files
committed
Format code
Signed-off-by: Kamil Rakoczy <[email protected]>
1 parent 3aefa9a commit 81b3e76

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

uhdm-plugin/UhdmAst.cc

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,8 @@ static AST::AstNode *convert_range(AST::AstNode *id, const std::vector<AST::AstN
191191
auto left_idx = wire_node->multirange_dimensions.size() - (i * 2) - 1;
192192
auto right_idx = wire_node->multirange_dimensions.size() - (i * 2) - 2;
193193
auto elem_size = wire_node->multirange_dimensions[left_idx] - wire_node->multirange_dimensions[right_idx];
194-
range_left = new AST::AstNode(
195-
AST::AST_SUB,
196-
AST::AstNode::mkconst_int(elem_size - 1, false),
197-
range_left->clone());
198-
range_right = new AST::AstNode(
199-
AST::AST_SUB,
200-
AST::AstNode::mkconst_int(elem_size - 1, false),
201-
range_right->clone());
194+
range_left = new AST::AstNode(AST::AST_SUB, AST::AstNode::mkconst_int(elem_size - 1, false), range_left->clone());
195+
range_right = new AST::AstNode(AST::AST_SUB, AST::AstNode::mkconst_int(elem_size - 1, false), range_right->clone());
202196
}
203197
}
204198
range_left =

0 commit comments

Comments
 (0)