diff options
author | 2014-04-10 17:43:13 -0700 | |
---|---|---|
committer | 2014-04-10 17:43:13 -0700 | |
commit | 1b333c89c9762795fda69f29a1239541a712f4f1 (patch) | |
tree | cfa56b862844107d175b4afa2ecefa6ab844dbfb /Eigen/src/Core/util/Memory.h | |
parent | a1fcf599faa023d1752b37aef215d80286e76839 (diff) |
Updated my previous fix to avoid introducing a compilation warning on ARM platforms.
Diffstat (limited to 'Eigen/src/Core/util/Memory.h')
-rw-r--r-- | Eigen/src/Core/util/Memory.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h index 1a1d3e98d..4988be5d9 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -89,7 +89,7 @@ inline void throw_std_bad_alloc() #ifdef EIGEN_EXCEPTIONS throw std::bad_alloc(); #else - std::size_t huge = -1ULL; + std::size_t huge = static_cast<std::size_t>(-1); new int[huge]; #endif } |