diff --git a/src/solvers/OSQPBackEnd.cpp b/src/solvers/OSQPBackEnd.cpp index ad5f27c5..c6ead735 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 = reinterpret_cast(A.innerIndexPtr()); - a->p = reinterpret_cast(A.outerIndexPtr()); + a->i = A.innerIndexPtr(); + a->p = A.outerIndexPtr(); } bool OSQPBackEnd::updateTask(const Eigen::MatrixXd &H, const Eigen::VectorXd &g)