Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
xmakro committed Feb 8, 2024
1 parent 57158b7 commit e459645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rand_distr/src/weighted_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ impl<W: Clone + PartialEq + PartialOrd + SampleUniform + SubAssign<W> + Weight>
break;
}
assert!(target_weight >= W::ZERO);
assert!(target_weight < self.subtotal(index));
assert!(target_weight < self.get(index));
Ok(index)
}
}
Expand Down

0 comments on commit e459645

Please sign in to comment.