diff options
author | Gael Guennebaud <g.gael@free.fr> | 2013-02-15 14:28:20 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2013-02-15 14:28:20 +0100 |
commit | cf259ce590ccffc7d05fb499d8c69f4fe633e403 (patch) | |
tree | 886a087ca2c23034e5a9b01ac4fcbd21b06501b4 /Eigen | |
parent | a1091caa437602368ddc21bf752c83452d8bf578 (diff) |
Workaround the following warning: "assuming signed overflow does not occur when assuming that (X + c) < X is always false"
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/Block.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/Block.h b/Eigen/src/Core/Block.h index 5f6426517..358b3188b 100644 --- a/Eigen/src/Core/Block.h +++ b/Eigen/src/Core/Block.h @@ -137,8 +137,8 @@ template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel> class { eigen_assert((RowsAtCompileTime==Dynamic || RowsAtCompileTime==blockRows) && (ColsAtCompileTime==Dynamic || ColsAtCompileTime==blockCols)); - eigen_assert(a_startRow >= 0 && blockRows >= 0 && a_startRow + blockRows <= xpr.rows() - && a_startCol >= 0 && blockCols >= 0 && a_startCol + blockCols <= xpr.cols()); + eigen_assert(a_startRow >= 0 && blockRows >= 0 && a_startRow <= xpr.rows() - blockRows + && a_startCol >= 0 && blockCols >= 0 && a_startCol <= xpr.cols() - blockCols); } }; |