From 714678fc6c10b5bdc4d11f6e857afc04d01b4811 Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Wed, 24 Aug 2022 22:04:04 -0700 Subject: [PATCH] Add missing ptr in realloc call. --- Eigen/src/SparseCore/SparseMatrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 5ae21a253..fdac4431a 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -601,7 +601,7 @@ class SparseMatrix return; m_outerIndex = internal::conditional_aligned_realloc_new_auto( - m_outerSize + outerChange + 1, m_outerSize + 1); + m_outerIndex, m_outerSize + outerChange + 1, m_outerSize + 1); if (outerChange > 0) { StorageIndex lastIdx = m_outerSize == 0 ? 0 : m_outerIndex[m_outerSize];