Skip to content

Commit

Permalink
fixed reinterpret_cast in osqpbackend
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMingo committed Apr 23, 2024
1 parent 2942bd7 commit 88f48be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solvers/OSQPBackEnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ void OSQPBackEnd::setCSCMatrix(csc* a, Eigen::SparseMatrix<double>& 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<int*>(A.innerIndexPtr());
a->p = reinterpret_cast<int*>(A.outerIndexPtr());
}

bool OSQPBackEnd::updateTask(const Eigen::MatrixXd &H, const Eigen::VectorXd &g)
Expand Down

0 comments on commit 88f48be

Please sign in to comment.