Skip to content

Commit 39e9ad0

Browse files
committed
fix
1 parent 2f02352 commit 39e9ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/haploid_wright_fisher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ fn stress_test_total_branch_length() {
163163
if let Some(tree) = tree_iter.next() {
164164
let b = tree.total_branch_length(false).unwrap();
165165
let b2 = unsafe {
166-
tskit::bindings::tsk_tree_get_total_branch_length(tree.as_ref(), -1, &mut x)
166+
tskit::bindings::tsk_tree_get_total_branch_length(tree.as_ll_ref(), -1, &mut x)
167167
};
168168
assert!(b2 >= 0, "{}", b2);
169169
assert!(f64::from(b) - x <= 1e-8);

0 commit comments

Comments
 (0)