aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sizeof.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2013-07-10 23:48:26 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2013-07-10 23:48:26 +0200
commit6d1f5dbaaefcb9cc198aad362146131f8eec9cd7 (patch)
treebfc10b33b7d6efd0008a539fa3362616995fe518 /test/sizeof.cpp
parent71cccf0ed825022555b6da57ea64433622058601 (diff)
Add no_assignment_operator to a few classes that must not be assigned, and fix a couple of warnings.
Diffstat (limited to 'test/sizeof.cpp')
-rw-r--r--test/sizeof.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sizeof.cpp b/test/sizeof.cpp
index 68463c9b6..c454780a6 100644
--- a/test/sizeof.cpp
+++ b/test/sizeof.cpp
@@ -13,7 +13,7 @@ template<typename MatrixType> void verifySizeOf(const MatrixType&)
{
typedef typename MatrixType::Scalar Scalar;
if (MatrixType::RowsAtCompileTime!=Dynamic && MatrixType::ColsAtCompileTime!=Dynamic)
- VERIFY(sizeof(MatrixType)==sizeof(Scalar)*size_t(MatrixType::SizeAtCompileTime));
+ VERIFY(sizeof(MatrixType)==sizeof(Scalar)*std::ptrdiff_t(MatrixType::SizeAtCompileTime));
else
VERIFY(sizeof(MatrixType)==sizeof(Scalar*) + 2 * sizeof(typename MatrixType::Index));
}