mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-11 23:51:49 +08:00
Fix regression on CompressedStorage::operator=
This commit is contained in:
parent
7043083be4
commit
40821876ea
@ -50,9 +50,9 @@ class CompressedStorage
|
|||||||
|
|
||||||
CompressedStorage& operator=(const CompressedStorage& other)
|
CompressedStorage& operator=(const CompressedStorage& other)
|
||||||
{
|
{
|
||||||
|
resize(other.size());
|
||||||
if(other.size()>0)
|
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_values, other.m_values + m_size, m_values);
|
||||||
internal::smart_copy(other.m_indices, other.m_indices + m_size, m_indices);
|
internal::smart_copy(other.m_indices, other.m_indices + m_size, m_indices);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user