Skip to content

Commit

Permalink
Add preventative debug assert
Browse files Browse the repository at this point in the history
  • Loading branch information
urschrei committed Dec 2, 2022
1 parent dc0bbb9 commit e31ba83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions geo/src/algorithm/simplify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ where
}
},
);
debug_assert_ne!(farthest_index, 0);

if farthest_distance > *epsilon {
// The farthest index was larger than epsilon, so we will recursively simplify subsegments
Expand Down

0 comments on commit e31ba83

Please sign in to comment.