diff --git a/src/solvers/OSQPBackEnd.cpp b/src/solvers/OSQPBackEnd.cpp index c6ead735..ad5f27c5 100644 --- a/src/solvers/OSQPBackEnd.cpp +++ b/src/solvers/OSQPBackEnd.cpp @@ -113,8 +113,8 @@ void OSQPBackEnd::setCSCMatrix(csc* a, Eigen::SparseMatrix& A) a->n = A.cols(); a->nzmax = A.nonZeros(); a->x = A.valuePtr(); - a->i = A.innerIndexPtr(); - a->p = A.outerIndexPtr(); + a->i = reinterpret_cast(A.innerIndexPtr()); + a->p = reinterpret_cast(A.outerIndexPtr()); } bool OSQPBackEnd::updateTask(const Eigen::MatrixXd &H, const Eigen::VectorXd &g)