mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-12 09:23:12 +08:00
Updated my previous fix to avoid introducing a compilation warning on ARM platforms.
This commit is contained in:
parent
a1fcf599fa
commit
1b333c89c9
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user