Skip to content

Commit

Permalink
Fix arena reservation
Browse files Browse the repository at this point in the history
  • Loading branch information
QuarticCat committed Nov 20, 2022
1 parent cea109e commit 0eb70c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diff/dijkstra.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ pub fn mark_syntax<'a>(
let size_hint = lhs_node_count * rhs_node_count;

let start = Vertex::new(lhs_syntax, rhs_syntax);
let vertex_arena = Bump::with_capacity(size_hint);
let vertex_arena = Bump::with_capacity(size_hint * std::mem::size_of::<Vertex>());

let route = shortest_path(start, &vertex_arena, size_hint, graph_limit)?;

Expand Down

0 comments on commit 0eb70c8

Please sign in to comment.