Skip to content

Commit 690355b

Browse files
authored
Merge pull request #3424 from wooffie/patch-1
fix: confusing indentation at acmp.cc
2 parents 08b70e0 + 78b9cb7 commit 690355b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/utils/acmp.cc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ static void acmp_build_binary_tree(ACMP *parser, acmp_node_t *node) {
226226

227227
/* We have array with all children of the node and number of those children
228228
*/
229-
for (i = 0; i < count - 1; i++)
229+
for (i = 0; i < count - 1; i++) {
230230
for (j = i + 1; j < count; j++) {
231231
acmp_node_t *tmp;
232232

@@ -236,10 +236,11 @@ static void acmp_build_binary_tree(ACMP *parser, acmp_node_t *node) {
236236
nodes[i] = nodes[j];
237237
nodes[j] = tmp;
238238
}
239-
if (node->btree != NULL) {
240-
free(node->btree);
241-
node->btree = NULL;
242-
}
239+
}
240+
if (node->btree != NULL) {
241+
free(node->btree);
242+
node->btree = NULL;
243+
}
243244
node->btree = reinterpret_cast<acmp_btree_node_t *>(calloc(1, sizeof(acmp_btree_node_t)));
244245

245246
/* ENH: Check alloc succeded */

0 commit comments

Comments
 (0)