Skip to content

Commit

Permalink
fix FundDistribution array sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-babichenko committed Feb 25, 2021
1 parent 9e702cc commit 7ac3af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain-impl-mockchain/benches/tally.rs
Expand Up @@ -304,7 +304,7 @@ struct FundDistribution {

impl FundDistribution {
pub fn new(ranges_bounds: &[u64], ranges_weights: &[f64]) -> Self {
assert_eq!(ranges_bounds.len() + 1, ranges_weights.len());
assert_eq!(ranges_bounds.len(), ranges_weights.len() + 1);
let ranges_no_sampler = WeightedIndex::new(ranges_weights).unwrap();
let ranges_values_samplers = ranges_bounds
.windows(2)
Expand Down

0 comments on commit 7ac3af7

Please sign in to comment.