From 496ea63972f15c5bc7d43a7a4dc987b6cd33d176 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 2 Sep 2009 14:08:33 +0200 Subject: [PATCH] fix wrong assert --- Eigen/src/Core/Matrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/Matrix.h b/Eigen/src/Core/Matrix.h index 16c0ee4ac..caa8d4be6 100644 --- a/Eigen/src/Core/Matrix.h +++ b/Eigen/src/Core/Matrix.h @@ -493,7 +493,7 @@ class Matrix using Base::swap; inline void swap(Matrix& other) { - ei_assert(matrix.rows() == other.rows() && matrix.cols() == other.cols()); + ei_assert(rows() == other.rows() && cols() == other.cols()); m_storage.swap(other.m_storage); // FIXME what about using this->Base::swap(other); for fixed size ? }