diff options
author | 2013-08-25 18:02:07 +0900 | |
---|---|---|
committer | 2013-08-25 18:02:07 +0900 | |
commit | 1472f4bc61192e4ffd06c6baf419747d7cc4c90b (patch) | |
tree | 48f62b2c6e081c8b04323f91c76931ff6f95c446 /Eigen | |
parent | a147500dee85092fbfbf755123553f412a218ec2 (diff) |
Fixed bug #647 by using smart_copy instead of bitwise memcpy.
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/SparseCore/CompressedStorage.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/SparseCore/CompressedStorage.h b/Eigen/src/SparseCore/CompressedStorage.h index 3321fab4a..10d516a66 100644 --- a/Eigen/src/SparseCore/CompressedStorage.h +++ b/Eigen/src/SparseCore/CompressedStorage.h @@ -51,8 +51,8 @@ class CompressedStorage CompressedStorage& operator=(const CompressedStorage& other) { resize(other.size()); - memcpy(m_values, other.m_values, m_size * sizeof(Scalar)); - memcpy(m_indices, other.m_indices, m_size * sizeof(Index)); + 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); return *this; } |