Skip to content

Commit

Permalink
Fix missing logical inversion
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Dec 29, 2024
1 parent 0d5d820 commit ae5d6b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flatgfa/src/ops/depth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub fn depth(gfa: &flatgfa::FlatGFA) -> (Vec<usize>, Vec<usize>) {
for step in &gfa.steps[path.steps] {
let seg_id = step.segment().index();
depths[seg_id] += 1;
if seen[seg_id] {
if !seen[seg_id] {
// The first traversal of this path over this segment.
uniq_depths[seg_id] += 1;
seen.set(seg_id, true);
Expand Down

0 comments on commit ae5d6b6

Please sign in to comment.