From 88f48be90abd3204013d193b04439c47bc7e6198 Mon Sep 17 00:00:00 2001 From: EnricoMingo Date: Tue, 23 Apr 2024 10:35:35 +0200 Subject: [PATCH] fixed reinterpret_cast in osqpbackend --- src/solvers/OSQPBackEnd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)