Skip to content

Commit

Permalink
do not push wrong ranges in the stack
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed Sep 21, 2024
1 parent 355c91e commit 56a8e66
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/impg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,12 @@ impl Impg {
}
);
results.push(adjusted_interval);
}

if metadata.query_id != current_target {
let todo_range = (metadata.query_id, adjusted_query_start, adjusted_query_end);
if !visited.insert(todo_range) {
stack.push(todo_range);
if metadata.query_id != current_target {
let todo_range = (metadata.query_id, adjusted_query_start, adjusted_query_end);
if !visited.insert(todo_range) {
stack.push(todo_range);
}
}
}
});
Expand Down

0 comments on commit 56a8e66

Please sign in to comment.