Skip to content

Commit

Permalink
vec::Vector: fix sort
Browse files Browse the repository at this point in the history
  • Loading branch information
lamphamsy committed Sep 28, 2018
1 parent 854abed commit 61c8334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vec_vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ void Vector<T>::to_poly(Polynomial<T>* poly)
template <typename T>
void Vector<T>::sort()
{
std::sort(mem, mem + n - 1);
std::sort(mem, mem + n);
}

template <typename T>
Expand Down

0 comments on commit 61c8334

Please sign in to comment.