Fix regression on CompressedStorage::operator=

This commit is contained in:
Gael Guennebaud 2015-06-20 13:59:13 +02:00
parent 7043083be4
commit 40821876ea

View File

@ -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);
}