Skip to content

Commit 9bb1ef4

Browse files
gonukepaulromano
andauthored
Update src/distribution.cpp
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
1 parent 72a6f77 commit 9bb1ef4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/distribution.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ DiscreteIndex::DiscreteIndex(pugi::xml_node node)
2727
auto params = get_node_array<double>(node, "parameters");
2828
std::size_t n = params.size() / 2;
2929

30-
assign(&(*params.begin()) + n, n);
30+
assign(params.data() + n, n);
3131
}
3232

3333
DiscreteIndex::DiscreteIndex(const double* p, int n)

0 commit comments

Comments
 (0)