Updated my previous fix to avoid introducing a compilation warning on ARM platforms.

This commit is contained in:
Benoit Steiner 2014-04-10 17:43:13 -07:00
parent a1fcf599fa
commit 1b333c89c9

View File

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