aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sizeof.cpp
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-12 19:42:16 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-12 19:42:16 +0200
commiteb95c57a9f6525f145e2d64ff7a45309551de3ea (patch)
tree6e4bb0f1f61d23e74c75a094951ca7f15ef927fa /test/sizeof.cpp
parent058f7d34864bfd2f8713e2f2f9166cf806a63214 (diff)
Fixed another enum related warning.
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 779f3b5db..5d7a26997 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)==sizeof(Scalar)*MatrixType::SizeAtCompileTime);
+ VERIFY(sizeof(MatrixType)==static_cast<int>(sizeof(Scalar))*MatrixType::SizeAtCompileTime);
else
VERIFY(sizeof(MatrixType)==sizeof(Scalar*) + 2 * sizeof(typename MatrixType::Index));
}