diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-06-02 14:45:45 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-06-02 14:45:45 +0200 |
commit | 61a32f2a4c8705256f3c6d09fa9b3231e322bf38 (patch) | |
tree | 37195ab6c498042cc3d8dfda90be209bc01e3e93 /test/rvalue_types.cpp | |
parent | 0ed08fd28180e41838fbe40f8e96c888220895ed (diff) |
Fix pointer to long conversion warning.
Diffstat (limited to 'test/rvalue_types.cpp')
-rw-r--r-- | test/rvalue_types.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/rvalue_types.cpp b/test/rvalue_types.cpp index a263d737f..8887f1b1b 100644 --- a/test/rvalue_types.cpp +++ b/test/rvalue_types.cpp @@ -11,6 +11,8 @@ #include <Eigen/Core> +using internal::UIntPtr; + #if EIGEN_HAS_RVALUE_REFERENCES template <typename MatrixType> void rvalue_copyassign(const MatrixType& m) @@ -20,11 +22,11 @@ void rvalue_copyassign(const MatrixType& m) // create a temporary which we are about to destroy by moving MatrixType tmp = m; - long src_address = reinterpret_cast<long>(tmp.data()); + UIntPtr src_address = reinterpret_cast<UIntPtr>(tmp.data()); // move the temporary to n MatrixType n = std::move(tmp); - long dst_address = reinterpret_cast<long>(n.data()); + UIntPtr dst_address = reinterpret_cast<UIntPtr>(n.data()); if (MatrixType::RowsAtCompileTime==Dynamic|| MatrixType::ColsAtCompileTime==Dynamic) { |