diff options
author | Gael Guennebaud <g.gael@free.fr> | 2017-01-23 22:02:53 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2017-01-23 22:02:53 +0100 |
commit | ca79c1545aa728b756191f0cc3abd62fb7f867b8 (patch) | |
tree | d1712b8d91e28df628674d020270193d13c74a8a /Eigen/src/Core/PlainObjectBase.h | |
parent | 4b607b5692bc2e26510861f1ce85c78aaf2057ff (diff) |
Add std:: namespace prefix to all (hopefully) instances if size_t/ptrdfiff_t
Diffstat (limited to 'Eigen/src/Core/PlainObjectBase.h')
-rw-r--r-- | Eigen/src/Core/PlainObjectBase.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/PlainObjectBase.h b/Eigen/src/Core/PlainObjectBase.h index 359135628..639fb92bf 100644 --- a/Eigen/src/Core/PlainObjectBase.h +++ b/Eigen/src/Core/PlainObjectBase.h @@ -41,7 +41,7 @@ template<> struct check_rows_cols_for_overflow<Dynamic> { { // http://hg.mozilla.org/mozilla-central/file/6c8a909977d3/xpcom/ds/CheckedInt.h#l242 // we assume Index is signed - Index max_index = (size_t(1) << (8 * sizeof(Index) - 1)) - 1; // assume Index is signed + Index max_index = (std::size_t(1) << (8 * sizeof(Index) - 1)) - 1; // assume Index is signed bool error = (rows == 0 || cols == 0) ? false : (rows > max_index / cols); if (error) |