diff --git a/speed/sacado/ode.cpp b/speed/sacado/ode.cpp index 503c9bce1..238daecca 100644 --- a/speed/sacado/ode.cpp +++ b/speed/sacado/ode.cpp @@ -71,7 +71,7 @@ bool link_ode( // return values with Y as the dependent variable vector for(i = 0; i < m; i++) { for(j = 0; j < n; j++) - jacobian[ i * n + j ] = Y[i].dx(j); + jacobian[ i * n + j ] = Y[i].dx( int(j) ); } } return true; diff --git a/speed/sacado/poly.cpp b/speed/sacado/poly.cpp index 36030df06..901489c67 100644 --- a/speed/sacado/poly.cpp +++ b/speed/sacado/poly.cpp @@ -48,7 +48,7 @@ bool link_poly( size_t i; // temporary index ADScalar Z; // domain space AD value ADScalar P; // range space AD value - unsigned int order = 2; // order of Taylor coefficients + int order = 2; // order of Taylor coefficients Z.resize(order+1, false); P.resize(order+1, false);