mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-23 01:59:38 +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)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user