Skip to content

Commit

Permalink
Fix #30: Fix bug in fix for #29
Browse files Browse the repository at this point in the history
  • Loading branch information
RagnarGrootKoerkamp committed Sep 29, 2024
1 parent 86fd779 commit 8ca0f21
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions astarpa2/src/blocks/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,10 @@ impl Blocks {
let prev_block = &self.blocks[self.last_block_idx - 1];
assert!(prev_block.i_range.1 == st.0 - 1);


// Horizontal delta (delete).
// Edge case: if we are above the start of the previous block (because of greedy matching),
// always go left, since there must have been a lower path as well.
let hd = if st.1 < prev_block.j_range.1 {
let hd = if st.1 < prev_block.j_range.0 {
1
} else {
*g - prev_block.index(st.1)
Expand Down

0 comments on commit 8ca0f21

Please sign in to comment.