From e2377984b413504f5a7ec347542a76d76bbcf9cf Mon Sep 17 00:00:00 2001 From: B1ueber2y Date: Mon, 24 Jun 2024 14:20:33 +0200 Subject: [PATCH] minor. --- _pyceres/core/crs_matrix.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_pyceres/core/crs_matrix.h b/_pyceres/core/crs_matrix.h index 0d43e83..c21577b 100644 --- a/_pyceres/core/crs_matrix.h +++ b/_pyceres/core/crs_matrix.h @@ -17,9 +17,9 @@ py::tuple ConvertCRSToPyTuple(const ceres::CRSMatrix& crsMatrix) { py::array_t rows(n_values), cols(n_values); py::array_t values(n_values); - int* rows_data = static_cast(rows.request().ptr); - int* cols_data = static_cast(cols.request().ptr); - double* values_data = static_cast(values.request().ptr); + int* const rows_data = static_cast(rows.request().ptr); + int* const cols_data = static_cast(cols.request().ptr); + double* const values_data = static_cast(values.request().ptr); int counter = 0; for (int row = 0; row < crsMatrix.num_rows; ++row) {