From 058f7d34864bfd2f8713e2f2f9166cf806a63214 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Sat, 12 Jun 2010 15:21:11 +0200 Subject: [PATCH] Fixed another enum related warning. --- Eigen/src/Array/Array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Array/Array.h b/Eigen/src/Array/Array.h index 30d5529fd..8cf1ae3fb 100644 --- a/Eigen/src/Array/Array.h +++ b/Eigen/src/Array/Array.h @@ -51,7 +51,7 @@ class Array using Base::m_storage; public: enum { NeedsToAlign = (!(Options&DontAlign)) - && SizeAtCompileTime!=Dynamic && ((sizeof(Scalar)*SizeAtCompileTime)%16)==0 }; + && SizeAtCompileTime!=Dynamic && ((static_cast(sizeof(Scalar))*SizeAtCompileTime)%16)==0 }; EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF(NeedsToAlign) using Base::base;