aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Block.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/Core/Block.h')
-rw-r--r--Eigen/src/Core/Block.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/Block.h b/Eigen/src/Core/Block.h
index 00d5d8b4e..de384b025 100644
--- a/Eigen/src/Core/Block.h
+++ b/Eigen/src/Core/Block.h
@@ -174,7 +174,7 @@ template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool H
inline const Scalar& coeffRef(Index row, Index col) const
{
- return m_xpr.const_cast_derived()
+ return m_xpr.derived()
.coeffRef(row + m_startRow.value(), col + m_startCol.value());
}