Skip to content

Commit

Permalink
Fix warning on conversion between int and double.
Browse files Browse the repository at this point in the history
  • Loading branch information
florent-lamiraux committed Jan 21, 2015
1 parent 5e27f3e commit 606e660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cubic-b-spline.cc
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ namespace trajectory
while (!found)
{
i = Double2SizeType::convert
(std::floor (static_cast<double> (.5*(imin + imax)+.5)));
(std::floor (.5 * static_cast<double> (imin + imax) + .5));
i_ = static_cast<std::size_t> (i);
if (t < knots_ [i_])
{
Expand Down

0 comments on commit 606e660

Please sign in to comment.