Fix numerous pointer-to-integer conversion warnings in unit tests.

This commit is contained in:
Gael Guennebaud
2016-05-26 17:41:28 +02:00
parent 30d97c03ce
commit fdcad686ee
7 changed files with 26 additions and 26 deletions

View File

@@ -94,7 +94,7 @@ template<typename T>
void construct_at_boundary(int boundary)
{
char buf[sizeof(T)+256];
size_t _buf = reinterpret_cast<size_t>(buf);
size_t _buf = reinterpret_cast<internal::UIntPtr>(buf);
_buf += (EIGEN_MAX_ALIGN_BYTES - (_buf % EIGEN_MAX_ALIGN_BYTES)); // make 16/32/...-byte aligned
_buf += boundary; // make exact boundary-aligned
T *x = ::new(reinterpret_cast<void*>(_buf)) T;