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

@@ -41,7 +41,7 @@ void test_first_aligned()
test_first_aligned_helper(array_double+1, 50);
test_first_aligned_helper(array_double+2, 50);
double *array_double_plus_4_bytes = (double*)(size_t(array_double)+4);
double *array_double_plus_4_bytes = (double*)(internal::UIntPtr(array_double)+4);
test_none_aligned_helper(array_double_plus_4_bytes, 50);
test_none_aligned_helper(array_double_plus_4_bytes+1, 50);