Skip to content

Commit

Permalink
rename to correct build error
Browse files Browse the repository at this point in the history
  • Loading branch information
jchilds0 committed Aug 31, 2023
1 parent 1fe603f commit e28cfa0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions kernel/kernel_code/symplectic_basis.c
Original file line number Diff line number Diff line change
Expand Up @@ -2526,7 +2526,7 @@ void do_train_line_segment_on_cusp(CuspStructure *cusp, PathEndPoint *start_endp
}

PathEndPoint *next_valid_endpoint_index(CuspStructure *cusp, PathEndPoint *current_endpoint) {
int start_index, start_class, class;
int start_index, start_class, edge_class;

if (current_endpoint == NULL) {
start_index = 0;
Expand All @@ -2537,21 +2537,21 @@ PathEndPoint *next_valid_endpoint_index(CuspStructure *cusp, PathEndPoint *curre
}

if (start_index == 0) {
for (class = start_class + 1; class < cusp->num_edge_classes; class++) {
if (cusp->train_line_endpoint[0][class].tri == NULL)
for (edge_class = start_class + 1; edge_class < cusp->num_edge_classes; edge_class++) {
if (cusp->train_line_endpoint[0][edge_class].tri == NULL)
continue;

return &cusp->train_line_endpoint[0][class];
return &cusp->train_line_endpoint[0][edge_class];
}

start_class = -1;
}

for (class = start_class + 1; class < cusp->num_edge_classes; class++) {
if (cusp->train_line_endpoint[1][class].tri == NULL)
for (edge_class = start_class + 1; edge_class < cusp->num_edge_classes; edge_class++) {
if (cusp->train_line_endpoint[1][edge_class].tri == NULL)
continue;

return &cusp->train_line_endpoint[1][class];
return &cusp->train_line_endpoint[1][edge_class];
}

return NULL;
Expand Down

0 comments on commit e28cfa0

Please sign in to comment.