Skip to content

Commit

Permalink
Use is_valid in adjacent_outgoing_rc_strand
Browse files Browse the repository at this point in the history
  • Loading branch information
adamant-pwn committed Oct 10, 2024
1 parent 60851da commit 91ea56f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metagraph/src/graph/representation/canonical_dbg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,8 @@ ::adjacent_outgoing_rc_strand(node_index node,

cache.call_incoming_edges(rc_edge,
[&](edge_index prev_edge) {
node_index prev = dbg_succ_->validate_edge(prev_edge);
if (!prev)
node_index prev = prev_edge;
if (!dbg_succ_->is_valid(prev))
return;

char c = cache.get_first_char(prev_edge, rc_edge);
Expand Down

0 comments on commit 91ea56f

Please sign in to comment.