diff --git a/src/cubic-b-spline.cc b/src/cubic-b-spline.cc index b0bf140..10ea9fe 100644 --- a/src/cubic-b-spline.cc +++ b/src/cubic-b-spline.cc @@ -193,7 +193,7 @@ namespace trajectory while (!found) { i = Double2SizeType::convert - (std::floor (static_cast (.5*(imin + imax)+.5))); + (std::floor (.5 * static_cast (imin + imax) + .5)); i_ = static_cast (i); if (t < knots_ [i_]) {