Skip to content

Commit

Permalink
Fix implicit conversion changes signedness
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Chrétien committed Jan 7, 2016
1 parent 03e1a25 commit 3954ce1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/roboptim/trajectory/constraints-over-splines.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ namespace roboptim
polynomial_t p;
for (size_type i = 0; i <= static_cast<size_type> (order_); ++i)
{
p += basisPolynomials_[order_ - i] * param (n * (k - i) + offset);
p += basisPolynomials_[order_ - static_cast<size_t> (i)]
* param (n * (k - i) + offset);
}

return p;
Expand Down

0 comments on commit 3954ce1

Please sign in to comment.