From b1169ce40cf615ec2cd8eb116ae905b48a849a3a Mon Sep 17 00:00:00 2001 From: Jeff Date: Thu, 10 Jul 2014 12:03:42 -0600 Subject: Fixed index that would cause crash with two point, two derivative interpolation. Added static_cast. --- unsupported/test/splines.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unsupported/test/splines.cpp') diff --git a/unsupported/test/splines.cpp b/unsupported/test/splines.cpp index 0b43eefb8..97665af96 100644 --- a/unsupported/test/splines.cpp +++ b/unsupported/test/splines.cpp @@ -252,7 +252,7 @@ void check_global_interpolation_with_derivatives2d() VectorXd derivativeIndices(numPoints); for (Eigen::DenseIndex i = 0; i < numPoints; ++i) - derivativeIndices(i) = i; + derivativeIndices(i) = static_cast(i); const Spline2d spline = SplineFitting::InterpolateWithDerivatives( points, derivatives, derivativeIndices, degree); -- cgit v1.2.3