Skip to content

Commit

Permalink
Merge pull request #212 from lf-lang/graph-fix
Browse files Browse the repository at this point in the history
Bugfix: use copy of set in PrecedenceGraph::addAll
  • Loading branch information
lhstrh authored Aug 10, 2023
2 parents 8ef0e57 + 5e2349e commit dbaf0e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class PrecedenceGraph<T> {
}
}
} else {
this.adjacencyMap.set(k, v);
this.adjacencyMap.set(k, new Set(v));
this.numberOfEdges += v.size;
}
}
Expand Down

0 comments on commit dbaf0e0

Please sign in to comment.