Skip to content

Commit b18f454

Browse files
committed
coupe-tools: fix xadj length
1 parent 7830221 commit b18f454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coupe-metis/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ unsafe fn partition(
4242

4343
// TODO make graph algorithms work over CsMatViewI instead of CsMatView
4444
// to avoid these conversions.
45-
let xadj: Vec<usize> = slice::from_raw_parts(xadj, nvtxs)
45+
let xadj: Vec<usize> = slice::from_raw_parts(xadj, nvtxs + 1)
4646
.iter()
4747
.map(|i| *i as usize)
4848
.collect();

0 commit comments

Comments
 (0)