Skip to content

Commit

Permalink
Fix issue where some configured funcs to skip were being visited
Browse files Browse the repository at this point in the history
  • Loading branch information
ejrgilbert committed Oct 1, 2024
1 parent ae04db0 commit 489e35d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/subiterator/module_subiterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ impl ModuleSubIterator {

fn handle_skips(&mut self) {
let mut curr_fid = self.get_curr_func().0;
while self.has_next_function() && self.skip_funcs.contains(&curr_fid) {
while self.skip_funcs.contains(&curr_fid) {
self.curr_idx += 1;
if self.curr_idx >= self.metadata.len() {
break;
}
curr_fid = self.get_curr_func().0;
}
}
Expand Down

0 comments on commit 489e35d

Please sign in to comment.