diff options
-rw-r--r-- | test/sizeof.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sizeof.cpp b/test/sizeof.cpp index 6cec6210b..d075c606e 100644 --- a/test/sizeof.cpp +++ b/test/sizeof.cpp @@ -28,7 +28,7 @@ template<typename MatrixType> void verifySizeOf(const MatrixType&) { typedef typename MatrixType::Scalar Scalar; if (MatrixType::RowsAtCompileTime!=Dynamic && MatrixType::ColsAtCompileTime!=Dynamic) - VERIFY(sizeof(MatrixType)==static_cast<int>(sizeof(Scalar))*MatrixType::SizeAtCompileTime); + VERIFY(sizeof(MatrixType)==sizeof(Scalar)*size_t(MatrixType::SizeAtCompileTime)); else VERIFY(sizeof(MatrixType)==sizeof(Scalar*) + 2 * sizeof(typename MatrixType::Index)); } |