aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/first_aligned.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2016-05-26 17:41:28 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2016-05-26 17:41:28 +0200
commitfdcad686eea0123049c0fc1d4b5cb50894a08ef6 (patch)
treefdc364bf038f589648b3dce6110cb0bb6bc3f9f8 /test/first_aligned.cpp
parent30d97c03ceb6efb55440e2bf567f5b25d9b9bd50 (diff)
Fix numerous pointer-to-integer conversion warnings in unit tests.
Diffstat (limited to 'test/first_aligned.cpp')
-rw-r--r--test/first_aligned.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/first_aligned.cpp b/test/first_aligned.cpp
index bf22f6b97..ae2d4bc42 100644
--- a/test/first_aligned.cpp
+++ b/test/first_aligned.cpp
@@ -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);