From bd0474adbbbd8a94293f9f28fec47f08fb597ac7 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 17 May 2013 14:39:31 +0200 Subject: Fix A=A with A a SparseMatrix --- Eigen/src/SparseCore/SparseMatrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Eigen/src/SparseCore/SparseMatrix.h') diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index de4d36840..b4ed27e9b 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -679,7 +679,7 @@ class SparseMatrix { swap(other.const_cast_derived()); } - else + else if(this!=&other) { initAssignment(other); if(other.isCompressed()) -- cgit v1.2.3