aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-06-20 13:59:13 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-06-20 13:59:13 +0200
commit40821876eacd2f3ba53da1085dacd2f47f58fbca (patch)
tree02d193a45d9d2dfe93dc40b1dd19ccb85c663dd5 /Eigen
parent7043083be478eac64a2fe6010d3139500f735814 (diff)
Fix regression on CompressedStorage::operator=
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/SparseCore/CompressedStorage.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h
index d667944ce..2199848e9 100644
--- a/Eigen/src/SparseCore/CompressedStorage.h
+++ b/Eigen/src/SparseCore/CompressedStorage.h
@@ -50,9 +50,9 @@ class CompressedStorage
CompressedStorage& operator=(const CompressedStorage& other)
{
+ resize(other.size());
if(other.size()>0)
{
- resize(other.size());
internal::smart_copy(other.m_values, other.m_values + m_size, m_values);
internal::smart_copy(other.m_indices, other.m_indices + m_size, m_indices);
}