From 4250a0cab079ca6e8c43f3dae4c59322d65fc0e9 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Fri, 27 Feb 2015 21:59:10 -0800 Subject: [PATCH] Fixed compilation warnings --- unsupported/Eigen/CXX11/src/Tensor/TensorStorage.h | 4 ++-- unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorStorage.h b/unsupported/Eigen/CXX11/src/Tensor/TensorStorage.h index 91aae091c..ae17c9610 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorStorage.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorStorage.h @@ -66,7 +66,7 @@ template class TensorStorage : public TensorStorage::type> { - typedef typename internal::compute_index_type::type Index; + typedef typename internal::compute_index_type(Options_ & Index32Bit)>::type Index; typedef DSizes Dimensions; typedef TensorStorage::type> Base_; @@ -85,7 +85,7 @@ template class TensorStorage::type> { public: - typedef typename internal::compute_index_type::type Index; + typedef typename internal::compute_index_type(Options_&Index32Bit)>::type Index; typedef DSizes Dimensions; typedef TensorStorage::type> Self_; diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h b/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h index 424bb24eb..9a35b044d 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h @@ -60,7 +60,7 @@ struct traits > { typedef Scalar_ Scalar; typedef Dense StorageKind; - typedef typename compute_index_type::type Index; + typedef typename compute_index_type(Options_&Index32Bit)>::type Index; static const int NumDimensions = NumIndices_; static const int Layout = Options_ & RowMajor ? RowMajor : ColMajor; enum { @@ -75,7 +75,7 @@ struct traits > { typedef Scalar_ Scalar; typedef Dense StorageKind; - typedef typename compute_index_type::type Index; + typedef typename compute_index_type(Options_&Index32Bit)>::type Index; static const int NumDimensions = array_size::value; static const int Layout = Options_ & RowMajor ? RowMajor : ColMajor; enum {