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 ? }